diff options
-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 |