Kaydet (Commit) d62e6cab authored tarafından Victor Stinner's avatar Victor Stinner

Issue #9425: file system encoding is not always utf-8

Fix a regression introduced in test_sys by r83778.
üst 696e0355
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment