[Python-3000-checkins] r57706 - python/branches/py3k/Lib/test/test_unicode_file.py

neal.norwitz python-3000-checkins at python.org
Thu Aug 30 07:59:15 CEST 2007


Author: neal.norwitz
Date: Thu Aug 30 07:59:15 2007
New Revision: 57706

Modified:
   python/branches/py3k/Lib/test/test_unicode_file.py
Log:
Since the filename is encoded, we must add bytes to it.  The test
still fails, but gets a little further with this change.


Modified: python/branches/py3k/Lib/test/test_unicode_file.py
==============================================================================
--- python/branches/py3k/Lib/test/test_unicode_file.py	(original)
+++ python/branches/py3k/Lib/test/test_unicode_file.py	Thu Aug 30 07:59:15 2007
@@ -195,7 +195,7 @@
         # For all 'equivilent' combinations:
         #  Make dir with encoded, chdir with unicode, checkdir with encoded
         #  (or unicode/encoded/unicode, etc
-        ext = ".dir"
+        ext = b".dir"
         self._do_directory(TESTFN_ENCODED+ext, TESTFN_ENCODED+ext, True)
         self._do_directory(TESTFN_ENCODED+ext, TESTFN_UNICODE+ext, True)
         self._do_directory(TESTFN_UNICODE+ext, TESTFN_ENCODED+ext, False)


More information about the Python-3000-checkins mailing list