mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +00:00
test_zipimport_support: use ascii() on bytes output to avoid BytesWarning
The test failed with python -bb.
This commit is contained in:
parent
b8ffb60ec6
commit
6722b5f7f1
1 changed files with 2 additions and 2 deletions
|
|
@ -182,7 +182,7 @@ class ZipSupportTests(ImportHooksBaseTestCase):
|
||||||
if verbose:
|
if verbose:
|
||||||
print ("Expected line", expected)
|
print ("Expected line", expected)
|
||||||
print ("Got stdout:")
|
print ("Got stdout:")
|
||||||
print (out)
|
print (ascii(out))
|
||||||
self.assertIn(expected.encode('utf-8'), out)
|
self.assertIn(expected.encode('utf-8'), out)
|
||||||
zip_name, run_name = make_zip_script(d, "test_zip",
|
zip_name, run_name = make_zip_script(d, "test_zip",
|
||||||
script_name, '__main__.py')
|
script_name, '__main__.py')
|
||||||
|
|
@ -191,7 +191,7 @@ class ZipSupportTests(ImportHooksBaseTestCase):
|
||||||
if verbose:
|
if verbose:
|
||||||
print ("Expected line", expected)
|
print ("Expected line", expected)
|
||||||
print ("Got stdout:")
|
print ("Got stdout:")
|
||||||
print (out)
|
print (ascii(out))
|
||||||
self.assertIn(expected.encode('utf-8'), out)
|
self.assertIn(expected.encode('utf-8'), out)
|
||||||
|
|
||||||
def test_pdb_issue4201(self):
|
def test_pdb_issue4201(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue