Kaydet (Commit) bda1418e authored tarafından Neal Norwitz's avatar Neal Norwitz

Print some more info to get an idea of how much longer the test will last

üst 643ad192
...@@ -48,8 +48,9 @@ class TestsWithSourceFile(unittest.TestCase): ...@@ -48,8 +48,9 @@ class TestsWithSourceFile(unittest.TestCase):
# Print still working message since this test can be really slow # Print still working message since this test can be really slow
if next_time <= time.time(): if next_time <= time.time():
next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL
print >>sys.__stdout__, \ print >>sys.__stdout__, (
' zipTest still working, be patient...' ' zipTest still writing %d of %d, be patient...' %
(num, filecount))
sys.__stdout__.flush() sys.__stdout__.flush()
zipfp.close() zipfp.close()
...@@ -60,8 +61,9 @@ class TestsWithSourceFile(unittest.TestCase): ...@@ -60,8 +61,9 @@ class TestsWithSourceFile(unittest.TestCase):
# Print still working message since this test can be really slow # Print still working message since this test can be really slow
if next_time <= time.time(): if next_time <= time.time():
next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL
print >>sys.__stdout__, \ print >>sys.__stdout__, (
' zipTest still working, be patient...' ' zipTest still reading %d of %d, be patient...' %
(num, filecount))
sys.__stdout__.flush() sys.__stdout__.flush()
zipfp.close() zipfp.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment