Blame SOURCES/testtools-2.4.0-fix_py39_test.patch

rdobuilder 45f8b7
diff -ru testtools-2.4.0-orig/testtools/tests/test_testresult.py testtools-2.4.0/testtools/tests/test_testresult.py
rdobuilder 45f8b7
--- testtools-2.4.0-orig/testtools/tests/test_testresult.py	2019-11-28 00:58:29.000000000 -0800
rdobuilder 45f8b7
+++ testtools-2.4.0/testtools/tests/test_testresult.py	2020-05-16 13:40:50.141580104 -0700
rdobuilder 45f8b7
@@ -2755,6 +2755,9 @@
rdobuilder 45f8b7
         textoutput = self._setup_external_case("import bad")
rdobuilder 45f8b7
         self._write_module("bad", "utf-8", _u("\ufeff^ = 0 # %s\n") % text)
rdobuilder 45f8b7
         textoutput = self._run_external_case()
rdobuilder 45f8b7
+        # Python 3.9 no longer prints the '\ufeff'
rdobuilder 45f8b7
+        if sys.version_info >= (3,9):
rdobuilder 45f8b7
+            textoutput = textoutput.replace('\ufeff', '')
rdobuilder 45f8b7
         self.assertThat(
rdobuilder 45f8b7
             textoutput,
rdobuilder 45f8b7
             MatchesRegex(