summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2004-06-06 20:27:05 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2004-06-06 20:27:05 (GMT)
commitc28e7ad3d0ae7bab7be11c57f49c0cafa31e82a5 (patch)
tree202ea9f78d8a837807a7de4319ee40035b2114e8 /Lib
parentfe92eef85b081640e20b787c99282544e148fc1c (diff)
downloadcpython-c28e7ad3d0ae7bab7be11c57f49c0cafa31e82a5.zip
cpython-c28e7ad3d0ae7bab7be11c57f49c0cafa31e82a5.tar.gz
cpython-c28e7ad3d0ae7bab7be11c57f49c0cafa31e82a5.tar.bz2
Try to improve test coverage for utime()
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_posix.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 6b4272f..24e5b1c 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -150,6 +150,10 @@ class PosixTester(unittest.TestCase):
if hasattr(posix, 'utime'):
now = time.time()
posix.utime(test_support.TESTFN, None)
+ self.assertRaises(TypeError, posix.utime, test_support.TESTFN, (None, None))
+ self.assertRaises(TypeError, posix.utime, test_support.TESTFN, (now, None))
+ self.assertRaises(TypeError, posix.utime, test_support.TESTFN, (None, now))
+ posix.utime(test_support.TESTFN, (int(now), int(now)))
posix.utime(test_support.TESTFN, (now, now))
def test_main():