summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-08 22:31:44 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-08 22:31:44 (GMT)
commitd62e6cabcadea472226af70c57c45f7983189632 (patch)
treed512622fce3d860e240d0665ab3fab9914a40f1f
parent696e03553b9e455bd6729cee5a8be43a2924f537 (diff)
downloadcpython-d62e6cabcadea472226af70c57c45f7983189632.zip
cpython-d62e6cabcadea472226af70c57c45f7983189632.tar.gz
cpython-d62e6cabcadea472226af70c57c45f7983189632.tar.bz2
Issue #9425: file system encoding is not always utf-8
Fix a regression introduced in test_sys by r83778.
-rw-r--r--Lib/test/test_sys.py5
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)