diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-20 21:48:35 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-20 21:48:35 (GMT) |
commit | 6722b5f7f1f3774258edacf128a7c3e3163ceee9 (patch) | |
tree | 367f497554bbd1793161e1ef9185260027bfdee1 | |
parent | b8ffb60ec68f1ddbbfc8efe0617038537347f46d (diff) | |
download | cpython-6722b5f7f1f3774258edacf128a7c3e3163ceee9.zip cpython-6722b5f7f1f3774258edacf128a7c3e3163ceee9.tar.gz cpython-6722b5f7f1f3774258edacf128a7c3e3163ceee9.tar.bz2 |
test_zipimport_support: use ascii() on bytes output to avoid BytesWarning
The test failed with python -bb.
-rw-r--r-- | Lib/test/test_zipimport_support.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_zipimport_support.py b/Lib/test/test_zipimport_support.py index aed7f19..b996e26 100644 --- a/Lib/test/test_zipimport_support.py +++ b/Lib/test/test_zipimport_support.py @@ -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): |