Try to improve test coverage for utime()

This commit is contained in:
Neal Norwitz 2004-06-06 20:27:05 +00:00
parent fe92eef85b
commit c28e7ad3d0
1 changed files with 4 additions and 0 deletions

View File

@ -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():