[Python-checkins] python/dist/src/Lib/test test_atexit.py,1.5,1.6

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 16 Jul 2002 17:34:28 -0700


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

Modified Files:
	test_atexit.py 
Log Message:
Use sys.executable to run Python, as suggested by Neal Norwitz.


Index: test_atexit.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_atexit.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_atexit.py	16 Jul 2002 21:35:23 -0000	1.5
--- test_atexit.py	17 Jul 2002 00:34:26 -0000	1.6
***************
*** 3,6 ****
--- 3,7 ----
  import atexit
  import os
+ import sys
  
  input = """\
***************
*** 23,27 ****
  f.close()
  
! p = os.popen("python " + fname)
  output = p.read()
  p.close()
--- 24,28 ----
  f.close()
  
! p = os.popen("%s %s" % (sys.executable, fname))
  output = p.read()
  p.close()
***************
*** 51,55 ****
  f.close()
  
! p = os.popen("python " + fname)
  output = p.read()
  p.close()
--- 52,56 ----
  f.close()
  
! p = os.popen("%s %s" % (sys.executable, fname))
  output = p.read()
  p.close()