summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tarfile.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-05-27 12:36:53 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-05-27 12:36:53 (GMT)
commitde41dc865a9f9eaddf48e2ea06a94294ba83569a (patch)
treefee20daa9a62926dd5ae7aefc222e31529da4009 /Lib/test/test_tarfile.py
parentb7c8f54c33d578f61ba928023eb306b351910cd9 (diff)
downloadcpython-de41dc865a9f9eaddf48e2ea06a94294ba83569a.zip
cpython-de41dc865a9f9eaddf48e2ea06a94294ba83569a.tar.gz
cpython-de41dc865a9f9eaddf48e2ea06a94294ba83569a.tar.bz2
More random thrashing trying to understand spurious
Windows failures. Who's keeping a bz2 file open?
Diffstat (limited to 'Lib/test/test_tarfile.py')
-rw-r--r--Lib/test/test_tarfile.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
index 8ee0f41..62423da 100644
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -633,7 +633,19 @@ def test_main():
if gzip:
os.remove(tarname("gz"))
if bz2:
- os.remove(tarname("bz2"))
+ # Grrr. This frequently blows up on the Windows buildbot
+ # slaves. No idea why. Adding more output to try to guess
+ # something. Can't reproduce at will.
+ import time, sys
+ for dummy in range(10):
+ try:
+ os.remove(tarname("bz2"))
+ except OSError, msg:
+ print >> sys.stderr, \
+ "test_tarfile final cleanup crapped out %s" % msg
+ time.sleep(1)
+ else:
+ break
if os.path.exists(dirname()):
shutil.rmtree(dirname())
if os.path.exists(tmpname()):