]> granicus.if.org Git - python/commitdiff
Print some more info to get an idea of how much longer the test will last
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 15 Jun 2006 10:24:49 +0000 (10:24 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 15 Jun 2006 10:24:49 +0000 (10:24 +0000)
Lib/test/test_zipfile64.py

index b0d447de7fa96fc3bc91b0cc9f0ad3f13d54beff..b3f5763fbdc19053bdb9e558298483f6017ffe0d 100644 (file)
@@ -48,8 +48,9 @@ class TestsWithSourceFile(unittest.TestCase):
             # Print still working message since this test can be really slow
             if next_time <= time.time():
                 next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL
-                print >>sys.__stdout__, \
-                   '  zipTest still working, be patient...'
+                print >>sys.__stdout__, (
+                   '  zipTest still writing %d of %d, be patient...' %
+                   (num, filecount))
                 sys.__stdout__.flush()
         zipfp.close()
 
@@ -60,8 +61,9 @@ class TestsWithSourceFile(unittest.TestCase):
             # Print still working message since this test can be really slow
             if next_time <= time.time():
                 next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL
-                print >>sys.__stdout__, \
-                   '  zipTest still working, be patient...'
+                print >>sys.__stdout__, (
+                   '  zipTest still reading %d of %d, be patient...' %
+                   (num, filecount))
                 sys.__stdout__.flush()
         zipfp.close()