[Python-checkins] CVS: python/dist/src/Lib/test test_binhex.py,1.7,1.8

Tim Peters tim_one@users.sourceforge.net
Wed, 17 Jan 2001 10:59:48 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv716/python/dist/src/lib/test

Modified Files:
	test_binhex.py 
Log Message:
Stop creating an unbounded number of "Jack is my hero" files under Windows.
Not that Jack doesn't deserve them, but saying it so often cheapens the
sentiment.


Index: test_binhex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_binhex.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** test_binhex.py	2000/12/12 23:11:42	1.7
--- test_binhex.py	2001/01/17 18:59:46	1.8
***************
*** 32,35 ****
--- 32,36 ----
      f = open(fname1, 'r')
      finish = f.readline()
+     f.close()   # on Windows an open file cannot be unlinked
  
      if start != finish: