[Python-checkins] python/dist/src/Lib/test test_traceback.py, 1.11, 1.12

perky at users.sourceforge.net perky at users.sourceforge.net
Wed Oct 27 05:12:08 CEST 2004


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

Modified Files:
	test_traceback.py 
Log Message:
Add a comment explains why we should modify mtime here.


Index: test_traceback.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_traceback.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- test_traceback.py	27 Oct 2004 02:44:10 -0000	1.11
+++ test_traceback.py	27 Oct 2004 03:12:05 -0000	1.12
@@ -52,12 +52,14 @@
 def test():
     raise ValueError"""
 
-            # XXX Unclear why we're doing this next bit.
+            # if this test runs fast, test_bug737473.py will have same mtime
+            # even if it's rewrited and it'll not reloaded.  so adjust mtime
+            # of original to past.
             if hasattr(os, 'utime'):
                 past = time.time() - 3
                 os.utime(testfile, (past, past))
             else:
-                time.sleep(3) # not to stay in same mtime.
+                time.sleep(3)
 
             if 'test_bug737473' in sys.modules:
                 del sys.modules['test_bug737473']



More information about the Python-checkins mailing list