Skip to content

Commit 00607e9

Browse files
Issue #23911: Fix mixed bytes/strings.
1 parent dbfdc38 commit 00607e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_site.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,11 @@ def test_abs_paths(self):
356356
self.assertEqual(proc.returncode, 0)
357357
os__file__, os__cached__ = stdout.splitlines()[:2]
358358
self.assertTrue(os.path.isabs(os__file__),
359-
"expected absolute path, got {}".format(os__file__))
359+
"expected absolute path, got {}"
360+
.format(os__file__.decode('ascii')))
360361
self.assertTrue(os.path.isabs(os__cached__),
361-
"expected absolute path, got {}".format(os__cached__))
362+
"expected absolute path, got {}"
363+
.format(os__cached__.decode('ascii')))
362364

363365
def test_no_duplicate_paths(self):
364366
# No duplicate paths should exist in sys.path

0 commit comments

Comments
 (0)