]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Since the filename is encoded, we must add bytes to it. The test
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 30 Aug 2007 05:59:15 +0000 (05:59 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 30 Aug 2007 05:59:15 +0000 (05:59 +0000)
still fails, but gets a little further with this change.

Lib/test/test_unicode_file.py

index ef118df8ee1ae57e65ca781634bb461ce7a65ba6..c6bb7a3b775c2cc2b89f7f8e261d95ae84d303b3 100644 (file)
@@ -195,7 +195,7 @@ class TestUnicodeFiles(unittest.TestCase):
         # 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)