[Python-checkins] python/dist/src/Lib/test test_posix.py,1.6,1.7

nnorwitz at users.sourceforge.net nnorwitz at users.sourceforge.net
Sun Jun 6 16:27:07 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14269/Lib/test

Modified Files:
	test_posix.py 
Log Message:
Try to improve test coverage for utime()

Index: test_posix.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_posix.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_posix.py	1 May 2003 17:45:45 -0000	1.6
--- test_posix.py	6 Jun 2004 20:27:05 -0000	1.7
***************
*** 151,154 ****
--- 151,158 ----
              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))
  




More information about the Python-checkins mailing list