]> granicus.if.org Git - python/commitdiff
Fix string-> bytes conversion on backport from 2.x.
authorFlorent Xicluna <florent.xicluna@gmail.com>
Mon, 8 Mar 2010 12:47:44 +0000 (12:47 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Mon, 8 Mar 2010 12:47:44 +0000 (12:47 +0000)
Lib/test/test_genericpath.py

index 4ceb292652512208d6af8fb139086c631d08f32a..4ffc1cdd578ed7d771b43d25e5f856ed11b3e7b6 100644 (file)
@@ -285,7 +285,7 @@ class CommonTest(GenericTest):
                     self.assertIsInstance(abspath(path), str)
 
         # Test non-ASCII, non-UTF8 bytes in the path.
-        with support.temp_cwd('\xe7w\xf0'):
+        with support.temp_cwd(b'\xe7w\xf0'):
             self.test_abspath()