summaryrefslogtreecommitdiff
path: root/Lib/test/test_tracemalloc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-19 20:20:10 +0200
committerGitHub <noreply@github.com>2017-03-19 20:20:10 +0200
commit24c738a9e91b8f46da6166663d8ce7ec18cec784 (patch)
tree99ed70ea10252ad329c458d9ddd3d758924aedbd /Lib/test/test_tracemalloc.py
parent6b5a9ec4788770c652bac3bf5d5a0a3b710b82ae (diff)
downloadcpython-git-24c738a9e91b8f46da6166663d8ce7ec18cec784.tar.gz
bpo-29845: Mark tests that use _testcapi as CPython-only (#711)
Diffstat (limited to 'Lib/test/test_tracemalloc.py')
-rw-r--r--Lib/test/test_tracemalloc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py
index 790ab7ee60..742259b439 100644
--- a/Lib/test/test_tracemalloc.py
+++ b/Lib/test/test_tracemalloc.py
@@ -865,6 +865,7 @@ class TestCommandLine(unittest.TestCase):
b'number of frames',
stderr)
+ @unittest.skipIf(_testcapi is None, 'need _testcapi')
def test_pymem_alloc0(self):
# Issue #21639: Check that PyMem_Malloc(0) with tracemalloc enabled
# does not crash.