[pypy-svn] r64516 - pypy/trunk/lib-python/modified-2.5.2/test

iko at codespeak.net iko at codespeak.net
Tue Apr 21 16:36:51 CEST 2009


Author: iko
Date: Tue Apr 21 16:36:50 2009
New Revision: 64516

Modified:
   pypy/trunk/lib-python/modified-2.5.2/test/test_os.py
Log:
Test something that makes sense for access (original CPython test
tests that os.utime raises in this test)



Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_os.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_os.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_os.py	Tue Apr 21 16:36:50 2009
@@ -422,7 +422,7 @@
         self.assertRaises(OSError, os.utime, test_support.TESTFN, None)
 
     def test_access(self):
-        self.assertRaises(OSError, os.access, test_support.TESTFN, 0)
+        self.assertEqual(os.access(test_support.TESTFN, 0), False)
 
     def test_chmod(self):
         self.assertRaises(OSError, os.chmod, test_support.TESTFN, 0)



More information about the Pypy-commit mailing list