diff options
author | Brian Curtin <brian@python.org> | 2011-11-07 14:18:54 -0600 |
---|---|---|
committer | Brian Curtin <brian@python.org> | 2011-11-07 14:18:54 -0600 |
commit | c1b65d1831265534cb1613d7bf0ad7643fddb795 (patch) | |
tree | 0bc1437d42c9ab6fb3319fb03f4b74d7f3ab728d /Lib/test/test_posix.py | |
parent | b0d5b5d3b2a3a9047e3fe87c118e723c5876b92a (diff) | |
download | cpython-git-c1b65d1831265534cb1613d7bf0ad7643fddb795.tar.gz |
Fix 13327. Remove explicit None arguments from futimes, futimens, futimesat,
and lutimes.
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r-- | Lib/test/test_posix.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index c8d0859e81..cb334775c7 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -235,6 +235,7 @@ class PosixTester(unittest.TestCase): fd = os.open(support.TESTFN, os.O_RDONLY) try: posix.futimes(fd, None) + posix.futimes(fd) self.assertRaises(TypeError, posix.futimes, fd, (None, None)) self.assertRaises(TypeError, posix.futimes, fd, (now, None)) self.assertRaises(TypeError, posix.futimes, fd, (None, now)) @@ -252,6 +253,7 @@ class PosixTester(unittest.TestCase): self.assertRaises(TypeError, posix.lutimes, support.TESTFN, (None, now)) posix.lutimes(support.TESTFN, (int(now), int(now))) posix.lutimes(support.TESTFN, (now, now)) + posix.lutimes(support.TESTFN) @unittest.skipUnless(hasattr(posix, 'futimens'), "test needs posix.futimens()") def test_futimens(self): @@ -263,6 +265,7 @@ class PosixTester(unittest.TestCase): self.assertRaises(TypeError, posix.futimens, fd, None, (now, 0)) posix.futimens(fd, (int(now), int((now - int(now)) * 1e9)), (int(now), int((now - int(now)) * 1e9))) + posix.futimens(fd) finally: os.close(fd) @@ -691,6 +694,7 @@ class PosixTester(unittest.TestCase): try: now = time.time() posix.futimesat(f, support.TESTFN, None) + posix.futimesat(f, support.TESTFN) self.assertRaises(TypeError, posix.futimesat, f, support.TESTFN, (None, None)) self.assertRaises(TypeError, posix.futimesat, f, support.TESTFN, (now, None)) self.assertRaises(TypeError, posix.futimesat, f, support.TESTFN, (None, now)) |