mirror of
https://github.com/python/cpython.git
synced 2025-07-21 10:15:46 +00:00
#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.
This commit is contained in:
parent
52f80a7041
commit
14d080eaa1
1 changed files with 1 additions and 9 deletions
|
@ -1386,14 +1386,6 @@ def dash_R(the_module, test, indirect_test, huntrleaks):
|
||||||
for obj in abc.__subclasses__() + [abc]:
|
for obj in abc.__subclasses__() + [abc]:
|
||||||
abcs[obj] = obj._abc_registry.copy()
|
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
|
nwarmup, ntracked, fname = huntrleaks
|
||||||
fname = os.path.join(support.SAVEDCWD, fname)
|
fname = os.path.join(support.SAVEDCWD, fname)
|
||||||
repcount = nwarmup + ntracked
|
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)
|
print(("1234567890"*(repcount//10 + 1))[:repcount], file=sys.stderr)
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
for i in range(repcount):
|
for i in range(repcount):
|
||||||
run_the_test()
|
indirect_test()
|
||||||
alloc_after, rc_after = dash_R_cleanup(fs, ps, pic, zdc, abcs)
|
alloc_after, rc_after = dash_R_cleanup(fs, ps, pic, zdc, abcs)
|
||||||
sys.stderr.write('.')
|
sys.stderr.write('.')
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue