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

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Fri, 26 Jul 2002 04:33:51 -0700


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

Modified Files:
	test_atexit.py 
Log Message:
Reorganized so the test is skipped if os.popen() doesn't exist (in stead of failing).

Index: test_atexit.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_atexit.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_atexit.py	17 Jul 2002 00:34:26 -0000	1.6
--- test_atexit.py	26 Jul 2002 11:33:49 -0000	1.7
***************
*** 2,6 ****
  from test_support import TESTFN, vereq
  import atexit
! import os
  import sys
  
--- 2,6 ----
  from test_support import TESTFN, vereq
  import atexit
! from os import popen, unlink
  import sys
  
***************
*** 24,28 ****
  f.close()
  
! p = os.popen("%s %s" % (sys.executable, fname))
  output = p.read()
  p.close()
--- 24,28 ----
  f.close()
  
! p = popen("%s %s" % (sys.executable, fname))
  output = p.read()
  p.close()
***************
*** 52,56 ****
  f.close()
  
! p = os.popen("%s %s" % (sys.executable, fname))
  output = p.read()
  p.close()
--- 52,56 ----
  f.close()
  
! p = popen("%s %s" % (sys.executable, fname))
  output = p.read()
  p.close()
***************
*** 60,62 ****
  """)
  
! os.unlink(fname)
--- 60,62 ----
  """)
  
! unlink(fname)