changeset: 95880:36b902bbc992 user: Eric Snow date: Mon May 04 11:48:39 2015 -0600 files: Lib/test/test_site.py description: Issue #23911: Fix mixed bytes/strings. diff -r 41fb7fd04b5d -r 36b902bbc992 Lib/test/test_site.py --- a/Lib/test/test_site.py Mon May 04 06:59:46 2015 -0700 +++ b/Lib/test/test_site.py Mon May 04 11:48:39 2015 -0600 @@ -356,9 +356,11 @@ 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