diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-05-06 16:32:54 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-05-06 16:32:54 (GMT) |
commit | d4e3bb3d3976ed3e20ad9c00dae010f32aa981ae (patch) | |
tree | 9df7ead26ef28462e8940a39c5af7f0f92f6a817 /Lib/test/test_os.py | |
parent | ce5933f5828d94b39d465f55c506da0aa4480402 (diff) | |
download | cpython-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.py | 12 |
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 |