File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88from test .test_support import run_unittest , TestSkipped , TESTFN_UNICODE
99from test .test_support import TESTFN_ENCODING , TESTFN_UNICODE_UNENCODEABLE
1010try :
11- TESTFN_ENCODED = TESTFN_UNICODE .encode (TESTFN_ENCODING )
11+ TESTFN_ENCODED = TESTFN_UNICODE
12+ TESTFN_UNICODE .encode (TESTFN_ENCODING )
1213except (UnicodeError , TypeError ):
1314 # Either the file system encoding is None, or the file name
1415 # cannot be encoded in the file system encoding.
@@ -76,6 +77,7 @@ def _do_single(self, filename):
7677 # Do as many "equivalancy' tests as we can - ie, check that although we
7778 # have different types for the filename, they refer to the same file.
7879 def _do_equivilent (self , filename1 , filename2 ):
80+ filename2 = str8 (filename2 )
7981 # Note we only check "filename1 against filename2" - we don't bother
8082 # checking "filename2 against 1", as we assume we are called again with
8183 # the args reversed.
You can’t perform that action at this time.
0 commit comments