summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-01-12 16:34:38 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-01-12 16:34:38 (GMT)
commit14d080eaa19cb2936a68c06674558b29c8858b0c (patch)
tree0159071e9a22de7a8ff5a88eda5bba66de2a29ae
parent52f80a704172052f5eca8e84d93500427fc400f2 (diff)
downloadcpython-14d080eaa19cb2936a68c06674558b29c8858b0c.zip
cpython-14d080eaa19cb2936a68c06674558b29c8858b0c.tar.gz
cpython-14d080eaa19cb2936a68c06674558b29c8858b0c.tar.bz2
#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.
-rwxr-xr-xLib/test/regrtest.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 43d561e..ec768ff 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -1386,14 +1386,6 @@ def dash_R(the_module, test, indirect_test, huntrleaks):
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 @@ def dash_R(the_module, test, indirect_test, huntrleaks):
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()