diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2015-05-04 17:48:39 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2015-05-04 17:48:39 (GMT) |
commit | 00607e91bdcd612195610db87edcf1c4bff4d27f (patch) | |
tree | fadd7ead2a6cf366e055b2cd763a22a85b00e987 /Lib/test/test_site.py | |
parent | dbfdc380df615fe7e85107ff3954b8fff3ce7741 (diff) | |
download | cpython-00607e91bdcd612195610db87edcf1c4bff4d27f.zip cpython-00607e91bdcd612195610db87edcf1c4bff4d27f.tar.gz cpython-00607e91bdcd612195610db87edcf1c4bff4d27f.tar.bz2 |
Issue #23911: Fix mixed bytes/strings.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 9a99dfa..6615080 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -356,9 +356,11 @@ class ImportSideEffectTests(unittest.TestCase): self.assertEqual(proc.returncode, 0) os__file__, os__cached__ = stdout.splitlines()[:2] self.assertTrue(os.path.isabs(os__file__), - "expected absolute path, got {}".format(os__file__)) + "expected absolute path, got {}" + .format(os__file__.decode('ascii'))) self.assertTrue(os.path.isabs(os__cached__), - "expected absolute path, got {}".format(os__cached__)) + "expected absolute path, got {}" + .format(os__cached__.decode('ascii'))) def test_no_duplicate_paths(self): # No duplicate paths should exist in sys.path |