[Python-checkins] python/dist/src/Lib/test test_subprocess.py, 1.14, 1.15

astrand at users.sourceforge.net astrand at users.sourceforge.net
Wed Nov 17 21:06:46 CET 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9325

Modified Files:
	test_subprocess.py 
Log Message:
Remove tempfile after use in test_call_string. 
In test_args_string, remove the tempfile before assertEqual.


Index: test_subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_subprocess.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- test_subprocess.py	12 Nov 2004 15:51:48 -0000	1.14
+++ test_subprocess.py	17 Nov 2004 20:06:35 -0000	1.15
@@ -436,8 +436,8 @@
             os.chmod(fname, 0700)
             p = subprocess.Popen(fname)
             p.wait()
-            self.assertEqual(p.returncode, 47)
             os.remove(fname)
+            self.assertEqual(p.returncode, 47)
 
         def test_invalid_args(self):
             # invalid arguments should raise ValueError
@@ -477,6 +477,7 @@
             os.close(f)
             os.chmod(fname, 0700)
             rc = subprocess.call(fname)
+            os.remove(fname)
             self.assertEqual(rc, 47)
 
 



More information about the Python-checkins mailing list