From 00607e91bdcd612195610db87edcf1c4bff4d27f Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Mon, 4 May 2015 11:48:39 -0600 Subject: Issue #23911: Fix mixed bytes/strings. --- Lib/test/test_site.py | 6 ++++-- 1 file 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 -- cgit v0.12