[Python-checkins] r78796 - python/branches/py3k/Lib/test/test_genericpath.py

florent.xicluna python-checkins at python.org
Mon Mar 8 13:47:44 CET 2010


Author: florent.xicluna
Date: Mon Mar  8 13:47:44 2010
New Revision: 78796

Log:
Fix string-> bytes conversion on backport from 2.x.


Modified:
   python/branches/py3k/Lib/test/test_genericpath.py

Modified: python/branches/py3k/Lib/test/test_genericpath.py
==============================================================================
--- python/branches/py3k/Lib/test/test_genericpath.py	(original)
+++ python/branches/py3k/Lib/test/test_genericpath.py	Mon Mar  8 13:47:44 2010
@@ -285,7 +285,7 @@
                     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()
 
 


More information about the Python-checkins mailing list