mirror of https://github.com/python/cpython
Try to improve test coverage for utime()
This commit is contained in:
parent
fe92eef85b
commit
c28e7ad3d0
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue