mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #19527: Fixed tests with defined COUNT_ALLOCS.
This commit is contained in:
parent
af65872da2
commit
a793037d80
10 changed files with 26 additions and 6 deletions
|
@ -2069,6 +2069,9 @@ def strip_python_stderr(stderr):
|
|||
stderr = re.sub(br"\[\d+ refs, \d+ blocks\]\r?\n?", b"", stderr).strip()
|
||||
return stderr
|
||||
|
||||
requires_type_collecting = unittest.skipIf(hasattr(sys, 'getcounts'),
|
||||
'types are immortal if COUNT_ALLOCS is defined')
|
||||
|
||||
def args_from_interpreter_flags():
|
||||
"""Return a list of command-line arguments reproducing the current
|
||||
settings in sys.flags and sys.warnoptions."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue