diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-07-03 19:30:49 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-07-03 19:30:49 (GMT) |
commit | bae75cf3fe975d21c0c20baa595d21ebeca54681 (patch) | |
tree | 5d1b8a52a7c505d5eacd37f8525ccb230776ba27 /Lib/test/support | |
parent | 7e160ce356036bccda2608d9ee10bfe276dfa97a (diff) | |
parent | a793037d803abf098d172f686e2b95d27863c54d (diff) | |
download | cpython-bae75cf3fe975d21c0c20baa595d21ebeca54681.zip cpython-bae75cf3fe975d21c0c20baa595d21ebeca54681.tar.gz cpython-bae75cf3fe975d21c0c20baa595d21ebeca54681.tar.bz2 |
Issue #19527: Fixed tests with defined COUNT_ALLOCS.
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | Lib/test/support/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 86ff734..ef6b4f5 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -2071,6 +2071,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.""" |