From: Neal Norwitz Date: Thu, 30 Aug 2007 05:59:15 +0000 (+0000) Subject: Since the filename is encoded, we must add bytes to it. The test X-Git-Tag: v3.0a1~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09cff641b8320eefad7fe141dc0af28afabd37c8;p=thirdparty%2FPython%2Fcpython.git Since the filename is encoded, we must add bytes to it. The test still fails, but gets a little further with this change. --- diff --git a/Lib/test/test_unicode_file.py b/Lib/test/test_unicode_file.py index ef118df8ee1a..c6bb7a3b775c 100644 --- a/Lib/test/test_unicode_file.py +++ b/Lib/test/test_unicode_file.py @@ -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)