summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-05-06 16:32:54 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-05-06 16:32:54 (GMT)
commitd4e3bb3d3976ed3e20ad9c00dae010f32aa981ae (patch)
tree9df7ead26ef28462e8940a39c5af7f0f92f6a817 /Lib/test/test_os.py
parentce5933f5828d94b39d465f55c506da0aa4480402 (diff)
downloadcpython-d4e3bb3d3976ed3e20ad9c00dae010f32aa981ae.zip
cpython-d4e3bb3d3976ed3e20ad9c00dae010f32aa981ae.tar.gz
cpython-d4e3bb3d3976ed3e20ad9c00dae010f32aa981ae.tar.bz2
Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 5bb45f5..ffc9420 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -375,6 +375,18 @@ class Win32ErrorTests(unittest.TestCase):
def test_chdir(self):
self.assertRaises(WindowsError, os.chdir, test_support.TESTFN)
+ def test_mkdir(self):
+ self.assertRaises(WindowsError, os.chdir, test_support.TESTFN)
+
+ def test_utime(self):
+ self.assertRaises(WindowsError, os.utime, test_support.TESTFN, None)
+
+ def test_access(self):
+ self.assertRaises(WindowsError, os.utime, test_support.TESTFN, 0)
+
+ def test_chmod(self):
+ self.assertRaises(WindowsError, os.utime, test_support.TESTFN, 0)
+
if sys.platform != 'win32':
class Win32ErrorTests(unittest.TestCase):
pass