summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-07-03 19:27:26 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-07-03 19:27:26 (GMT)
commita793037d803abf098d172f686e2b95d27863c54d (patch)
treeb1723194b3e1d1584f16c5a8b811f93c8a34fb1d /Lib/test/support
parentaf65872da2b679e4b1876412aab6a731f82a469f (diff)
downloadcpython-a793037d803abf098d172f686e2b95d27863c54d.zip
cpython-a793037d803abf098d172f686e2b95d27863c54d.tar.gz
cpython-a793037d803abf098d172f686e2b95d27863c54d.tar.bz2
Issue #19527: Fixed tests with defined COUNT_ALLOCS.
Diffstat (limited to 'Lib/test/support')
-rw-r--r--Lib/test/support/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index c9e36fb..867dc2f 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -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."""