Commit 8acaa6ed authored by Eric Snow's avatar Eric Snow

Issue #23911: Fix mixed bytes/strings.

parent bf86a6d3
...@@ -356,9 +356,11 @@ class ImportSideEffectTests(unittest.TestCase): ...@@ -356,9 +356,11 @@ class ImportSideEffectTests(unittest.TestCase):
self.assertEqual(proc.returncode, 0) self.assertEqual(proc.returncode, 0)
os__file__, os__cached__ = stdout.splitlines()[:2] os__file__, os__cached__ = stdout.splitlines()[:2]
self.assertTrue(os.path.isabs(os__file__), 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__), 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): def test_no_duplicate_paths(self):
# No duplicate paths should exist in sys.path # No duplicate paths should exist in sys.path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment