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

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 15 Jan 2002 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]):