summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-30 05:59:15 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-30 05:59:15 (GMT)
commit09cff641b8320eefad7fe141dc0af28afabd37c8 (patch)
tree0e255a7413229d74378c43d6ecb3ab47a17b9703 /Lib
parentf73999165e00ec04cb5925b7d08daf166bc53fb8 (diff)
downloadcpython-09cff641b8320eefad7fe141dc0af28afabd37c8.zip
cpython-09cff641b8320eefad7fe141dc0af28afabd37c8.tar.gz
cpython-09cff641b8320eefad7fe141dc0af28afabd37c8.tar.bz2
Since the filename is encoded, we must add bytes to it. The test
still fails, but gets a little further with this change.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_unicode_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_unicode_file.py b/Lib/test/test_unicode_file.py
index ef118df..c6bb7a3 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)