[Python-checkins] python/dist/src/Lib/test test_bz2.py,1.9,1.10

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Thu, 14 Nov 2002 08:23:31 -0800


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

Modified Files:
	test_bz2.py 
Log Message:
This uses only one temp file at a time, so use test_support.TESTFN as
the name instead of enduring nanny "security warnings" from
tempfile.mktemp().


Index: test_bz2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_bz2.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_bz2.py	9 Nov 2002 06:51:30 -0000	1.9
--- test_bz2.py	14 Nov 2002 16:23:29 -0000	1.10
***************
*** 1,4 ****
--- 1,5 ----
  #!/usr/bin/python
  from test import test_support
+ from test.test_support import TESTFN
  
  import unittest
***************
*** 6,10 ****
  import os
  import popen2
- import tempfile
  import sys
  
--- 7,10 ----
***************
*** 41,45 ****
  
      def setUp(self):
!         self.filename = tempfile.mktemp("bz2")
  
      def tearDown(self):
--- 41,45 ----
  
      def setUp(self):
!         self.filename = TESTFN
  
      def tearDown(self):