mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #25220: Fix "-m test --forever"
* Fix "-m test --forever": replace _test_forever() with self._test_forever() * Add unit test for --forever * Add unit test for a failing test * Fix also some pyflakes warnings in libregrtest
This commit is contained in:
parent
38031143fb
commit
9a14214aee
4 changed files with 99 additions and 43 deletions
|
@ -46,6 +46,8 @@ def dash_R(the_module, test, indirect_test, huntrleaks):
|
|||
print("beginning", repcount, "repetitions", file=sys.stderr)
|
||||
print(("1234567890"*(repcount//10 + 1))[:repcount], file=sys.stderr,
|
||||
flush=True)
|
||||
# initialize variables to make pyflakes quiet
|
||||
rc_before = alloc_before = 0
|
||||
for i in range(repcount):
|
||||
indirect_test()
|
||||
alloc_after, rc_after = dash_R_cleanup(fs, ps, pic, zdc, abcs)
|
||||
|
@ -158,6 +160,6 @@ def warm_caches():
|
|||
for i in range(256):
|
||||
s[i:i+1]
|
||||
# unicode cache
|
||||
x = [chr(i) for i in range(256)]
|
||||
[chr(i) for i in range(256)]
|
||||
# int cache
|
||||
x = list(range(-5, 257))
|
||||
list(range(-5, 257))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue