summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode_file.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-08 09:10:29 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-08 09:10:29 (GMT)
commitb60ae9960182b8eecb26da12171917ee5a6cc1fc (patch)
treec21b0696a25d38373181c49a1bc26af41e62ad8c /Lib/test/test_unicode_file.py
parent3e1dd3be4936fc1b1c0ad6ad6609f504b4e3e7a9 (diff)
downloadcpython-b60ae9960182b8eecb26da12171917ee5a6cc1fc.zip
cpython-b60ae9960182b8eecb26da12171917ee5a6cc1fc.tar.gz
cpython-b60ae9960182b8eecb26da12171917ee5a6cc1fc.tar.bz2
Convert file names of posix.access according to the file system encoding.
Diffstat (limited to 'Lib/test/test_unicode_file.py')
-rw-r--r--Lib/test/test_unicode_file.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_unicode_file.py b/Lib/test/test_unicode_file.py
index 87f73ac..6443efd 100644
--- a/Lib/test/test_unicode_file.py
+++ b/Lib/test/test_unicode_file.py
@@ -44,8 +44,10 @@ class TestUnicodeFiles(unittest.TestCase):
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()))