[Python-checkins] python/dist/src/Tools/compiler regrtest.py,1.3,1.4

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 09 Aug 2002 09:37:38 -0700


Update of /cvsroot/python/python/dist/src/Tools/compiler
In directory usw-pr-cvs1:/tmp/cvs-serv22967/Tools/compiler

Modified Files:
	regrtest.py 
Log Message:
Massive changes from SF 589982 (tempfile.py rewrite, by Zack
Weinberg).  This changes all uses of deprecated tempfile functions to
the recommended ones.


Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/regrtest.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** regrtest.py	17 Sep 2001 21:31:35 -0000	1.3
--- regrtest.py	9 Aug 2002 16:37:36 -0000	1.4
***************
*** 16,21 ****
  
  def copy_test_suite():
!     dest = tempfile.mktemp()
!     os.mkdir(dest)
      os.system("cp -r %s/* %s" % (test.__path__[0], dest))
      print "Creating copy of test suite in", dest
--- 16,20 ----
  
  def copy_test_suite():
!     dest = tempfile.mkdtemp()
      os.system("cp -r %s/* %s" % (test.__path__[0], dest))
      print "Creating copy of test suite in", dest
***************
*** 23,28 ****
  
  def copy_library():
!     dest = tempfile.mktemp()
!     os.mkdir(dest)
      libdir = os.path.split(test.__path__[0])[0]
      print "Found standard library in", libdir
--- 22,26 ----
  
  def copy_library():
!     dest = tempfile.mkdtemp()
      libdir = os.path.split(test.__path__[0])[0]
      print "Found standard library in", libdir