diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_sys.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 244874d..44ef5c1 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -509,10 +509,7 @@ class SysModuleTest(unittest.TestCase): p = subprocess.Popen([sys.executable, "-c", code], stderr=subprocess.PIPE) stdout, stderr = p.communicate() self.assertEqual(p.returncode, 1) - self.assertIn( - br"UnicodeEncodeError: 'utf-8' codec can't encode character " - br"'\udcff' in position 7: surrogates not allowed", - stderr) + self.assertIn(br"UnicodeEncodeError:", stderr) def test_sys_flags(self): self.assertTrue(sys.flags) |