Issue #23911: Fix mixed bytes/strings.

This commit is contained in:
Eric Snow 2015-05-04 11:48:39 -06:00
parent dbfdc380df
commit 00607e91bd
1 changed files with 4 additions and 2 deletions

View File

@ -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