]> granicus.if.org Git - python/commitdiff
To boost morale :-), force test_optparse to run immediately
authorTim Peters <tim.peters@gmail.com>
Fri, 9 Jun 2006 03:09:42 +0000 (03:09 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 9 Jun 2006 03:09:42 +0000 (03:09 +0000)
after test_file until we can figure out how to fix it.
(See python-dev; at the moment we don't even know which checkin
caused the problem.)

Lib/test/regrtest.py

index ca4a3b515fa55476f9cc94f7e378344b0dd47423..d146eb0a24a0f6a4aa2bcedfc1e42c01298f3495 100755 (executable)
@@ -344,6 +344,11 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False,
         tests = tests[:1]
     if randomize:
         random.shuffle(tests)
+        # XXX Temporary hack to force test_optparse to run immediately
+        # XXX after test_file.  This should go away as soon as we fix
+        # XXX whatever it is that's causing that to fail.
+        tests.remove("test_file")
+        tests.insert(tests.index("test_optparse"), "test_file")
     if trace:
         import trace
         tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix],