[Python-checkins] CVS: python/dist/src/Lib/test test_unicode_file.py,1.3,1.4

Guido van Rossum gvanrossum@users.sourceforge.net
2002年1月15日 13:25:53 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv25671
Modified Files:
	test_unicode_file.py 
Log Message:
Disable code intended for PEP 277.
Index: test_unicode_file.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode_file.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_unicode_file.py	2002年01月07日 02:11:43	1.3
--- test_unicode_file.py	2002年01月15日 21:25:51	1.4
***************
*** 56,64 ****
 
 path, base = os.path.split(os.path.abspath(TESTFN_ENCODED))
! if base not in os.listdir(path):
! print "Filename did not appear in os.listdir()"
! path, base = os.path.split(os.path.abspath(TESTFN_UNICODE))
! if base not in os.listdir(path):
! print "Unicode filename did not appear in os.listdir()"
 
 if os.path.abspath(TESTFN_ENCODED) != os.path.abspath(glob.glob(TESTFN_ENCODED)[0]):
--- 56,65 ----
 
 path, base = os.path.split(os.path.abspath(TESTFN_ENCODED))
! # Until PEP 277 is adopted, this test is not portable
! # if base not in os.listdir(path):
! # print "Filename did not appear in os.listdir()"
! # path, base = os.path.split(os.path.abspath(TESTFN_UNICODE))
! # if base not in os.listdir(path):
! # print "Unicode filename did not appear in os.listdir()"
 
 if os.path.abspath(TESTFN_ENCODED) != os.path.abspath(glob.glob(TESTFN_ENCODED)[0]):

AltStyle によって変換されたページ (->オリジナル) /