From: Neal Norwitz Date: Sun, 6 Jun 2004 20:27:05 +0000 (+0000) Subject: Try to improve test coverage for utime() X-Git-Tag: v2.4a1~239 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c28e7ad3d0ae7bab7be11c57f49c0cafa31e82a5;p=python Try to improve test coverage for utime() --- diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 6b4272f636..24e5b1ced6 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():