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

Fix a regression introduced in test_sys by r83778.
This commit is contained in:
Victor Stinner 2010-08-08 22:31:44 +00:00
parent 696e03553b
commit d62e6cabca
1 changed files with 1 additions and 4 deletions

View File

@ -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)