[Python-checkins] python/dist/src/Lib/test test_unicode_file.py, 1.16, 1.16.2.1

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sun Mar 13 23:18:55 CET 2005


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

Modified Files:
      Tag: release24-maint
	test_unicode_file.py 
Log Message:
Backport of change to os.access to encode Unicode file names with
the file system encoding.


Index: test_unicode_file.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode_file.py,v
retrieving revision 1.16
retrieving revision 1.16.2.1
diff -u -d -r1.16 -r1.16.2.1
--- test_unicode_file.py	7 Nov 2004 19:57:35 -0000	1.16
+++ test_unicode_file.py	13 Mar 2005 22:18:21 -0000	1.16.2.1
@@ -44,8 +44,10 @@
     def _do_single(self, filename):
         self.failUnless(os.path.exists(filename))
         self.failUnless(os.path.isfile(filename))
+        self.failUnless(os.access(filename, os.R_OK))
         self.failUnless(os.path.exists(os.path.abspath(filename)))
         self.failUnless(os.path.isfile(os.path.abspath(filename)))
+        self.failUnless(os.access(os.path.abspath(filename), os.R_OK))
         os.chmod(filename, 0777)
         os.utime(filename, None)
         os.utime(filename, (time.time(), time.time()))



More information about the Python-checkins mailing list