Skip to content

Commit a2f3e78

Browse files
committed
use a more generic variant, so that we can run the tests unmodified also on PyPy
1 parent 6e76cc6 commit a2f3e78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def make_module(self, source_template, name='mytest', extra_templates=()):
170170

171171
def should_check_refcount(self):
172172
# defaults to True on CPython, but is set to False by e.g. PyPy
173-
return True
173+
return sys.implementation.name == 'cpython'
174174

175175

176176
# the few functions below are copied and adapted from cffi/ffiplatform.py

0 commit comments

Comments
 (0)