summaryrefslogtreecommitdiff
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-07 10:06:05 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-07 10:06:05 +0200
commit76249ea4a7ab1cb0fa41d967b2fb8975916cb955 (patch)
tree695ff618fa6667404441dfbb788561f9a0c415a8 /Lib/test/test_support.py
parent6a036793b66683e238c7222eb38368e44127c0e7 (diff)
downloadcpython-git-76249ea4a7ab1cb0fa41d967b2fb8975916cb955.tar.gz
Issue #20532: Tests which use _testcapi now are marked as CPython only.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index d82edb01e5..a40a593b19 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -19,7 +19,6 @@ import UserDict
import re
import time
import struct
-import _testcapi
import sysconfig
try:
import thread
@@ -1002,6 +1001,7 @@ _TPFLAGS_HAVE_GC = 1<<14
_TPFLAGS_HEAPTYPE = 1<<9
def check_sizeof(test, o, size):
+ import _testcapi
result = sys.getsizeof(o)
# add GC header size
if ((type(o) == type) and (o.__flags__ & _TPFLAGS_HEAPTYPE) or\