mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Issue #9425: file system encoding is not always utf-8
Fix a regression introduced in test_sys by r83778.
This commit is contained in:
parent
696e03553b
commit
d62e6cabca
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue