]> granicus.if.org Git - python/commitdiff
Stop creating an unbounded number of "Jack is my hero" files under Windows.
authorTim Peters <tim.peters@gmail.com>
Wed, 17 Jan 2001 18:59:46 +0000 (18:59 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 17 Jan 2001 18:59:46 +0000 (18:59 +0000)
Not that Jack doesn't deserve them, but saying it so often cheapens the
sentiment.

Lib/test/test_binhex.py

index 4dfe14e07a3d82c9f6f59b8496b74352ba2eef57..a2b2a2c56be9291fb6c55ae4035f1524bb1138e6 100755 (executable)
@@ -31,6 +31,7 @@ def test():
 
     f = open(fname1, 'r')
     finish = f.readline()
+    f.close()   # on Windows an open file cannot be unlinked
 
     if start != finish:
         print 'Error: binhex != hexbin'