[Python-checkins] cpython: #16259: delete some no-longer-used code from regrtest.

r.david.murray python-checkins at python.org
Sat Jan 12 17:34:55 CET 2013


http://hg.python.org/cpython/rev/e22c09f636d4
changeset:   81462:e22c09f636d4
user:        R David Murray <rdmurray at bitdance.com>
date:        Sat Jan 12 11:34:38 2013 -0500
summary:
  #16259: delete some no-longer-used code from regrtest.

dash_R is only called from one location, and from that location
an indirect_test is passed.

files:
  Lib/test/regrtest.py |  10 +---------
  1 files changed, 1 insertions(+), 9 deletions(-)


diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -1386,14 +1386,6 @@
         for obj in abc.__subclasses__() + [abc]:
             abcs[obj] = obj._abc_registry.copy()
 
-    if indirect_test:
-        def run_the_test():
-            indirect_test()
-    else:
-        def run_the_test():
-            del sys.modules[the_module.__name__]
-            exec('import ' + the_module.__name__)
-
     nwarmup, ntracked, fname = huntrleaks
     fname = os.path.join(support.SAVEDCWD, fname)
     repcount = nwarmup + ntracked
@@ -1404,7 +1396,7 @@
     print(("1234567890"*(repcount//10 + 1))[:repcount], file=sys.stderr)
     sys.stderr.flush()
     for i in range(repcount):
-        run_the_test()
+        indirect_test()
         alloc_after, rc_after = dash_R_cleanup(fs, ps, pic, zdc, abcs)
         sys.stderr.write('.')
         sys.stderr.flush()

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list