[Python-checkins] python/dist/src/Lib/test test_pep277.py,1.8,1.9

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sun Nov 7 21:02:01 CET 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10218

Modified Files:
	test_pep277.py 
Log Message:
Stop printing listdir bytestring output, as the precise list of strings 
returned depends on the filesystem encoding.

Index: test_pep277.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pep277.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- test_pep277.py	12 Sep 2003 16:25:37 -0000	1.8
+++ test_pep277.py	7 Nov 2004 20:01:55 -0000	1.9
@@ -78,11 +78,11 @@
 
     def test_listdir(self):
         f1 = os.listdir(test_support.TESTFN)
-        f1.sort()
+        # Printing f1 is not appropriate, as specific filenames
+        # returned depend on the local encoding
         f2 = os.listdir(unicode(test_support.TESTFN,
                                 sys.getfilesystemencoding()))
         f2.sort()
-        print f1
         print f2
 
     def test_rename(self):



More information about the Python-checkins mailing list