[Python-checkins] r80056 - in python/branches/py3k-issue4970/Lib/test: regrtest.py test_wait3.py

mark.dickinson python-checkins at python.org
Tue Apr 13 16:59:39 CEST 2010


Author: mark.dickinson
Date: Tue Apr 13 16:59:39 2010
New Revision: 80056

Log:
Try to reduce failure to a single test.

Modified:
   python/branches/py3k-issue4970/Lib/test/regrtest.py
   python/branches/py3k-issue4970/Lib/test/test_wait3.py

Modified: python/branches/py3k-issue4970/Lib/test/regrtest.py
==============================================================================
--- python/branches/py3k-issue4970/Lib/test/regrtest.py	(original)
+++ python/branches/py3k-issue4970/Lib/test/regrtest.py	Tue Apr 13 16:59:39 2010
@@ -260,8 +260,8 @@
              'runleaks', 'huntrleaks=', 'memlimit=', 'randseed=',
              'multiprocess=', 'slaveargs=', 'forever', 'debug', 'start=',
              'nowindows'])
-        # Issue #4970: pretend that args were test_os and test_wait3
-        args = ['test_os', 'test_wait3']
+        # Issue #4970: pretend that the only non-option arg was test_wait3
+        args = ['test_wait3']
     except getopt.error as msg:
         usage(msg)
 

Modified: python/branches/py3k-issue4970/Lib/test/test_wait3.py
==============================================================================
--- python/branches/py3k-issue4970/Lib/test/test_wait3.py	(original)
+++ python/branches/py3k-issue4970/Lib/test/test_wait3.py	Tue Apr 13 16:59:39 2010
@@ -8,6 +8,11 @@
 from test.support import run_unittest, reap_children
 
 try:
+    os.execv('/usr/bin/dorothyq', ['dorothyq'])
+except OSError:
+    pass
+
+try:
     os.fork
 except AttributeError:
     raise unittest.SkipTest("os.fork not defined -- skipping test_wait3")


More information about the Python-checkins mailing list