diff options
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 130aa66..448fd3f 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -506,7 +506,7 @@ class SysModuleTest(unittest.TestCase): else: self.skipTest('%r is decodable with encoding %s' % (non_decodable, encoding)) - code = b'print("' + non_decodable + b'")' + code = b'print(ascii("' + non_decodable + b'"))' p = subprocess.Popen([sys.executable, "-c", code], stderr=subprocess.PIPE) stdout, stderr = p.communicate() self.assertEqual(p.returncode, 1) |