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

test_zipimport_support: use ascii() on bytes output to avoid BytesWarning

The test failed with python -bb.
üst b8ffb60e
......@@ -182,7 +182,7 @@ class ZipSupportTests(ImportHooksBaseTestCase):
if verbose:
print ("Expected line", expected)
print ("Got stdout:")
print (out)
print (ascii(out))
self.assertIn(expected.encode('utf-8'), out)
zip_name, run_name = make_zip_script(d, "test_zip",
script_name, '__main__.py')
......@@ -191,7 +191,7 @@ class ZipSupportTests(ImportHooksBaseTestCase):
if verbose:
print ("Expected line", expected)
print ("Got stdout:")
print (out)
print (ascii(out))
self.assertIn(expected.encode('utf-8'), out)
def test_pdb_issue4201(self):
......
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