Skip to content

Commit 8f62f2a

Browse files
committed
python: Disable linking to extensions when testing PyPy
1 parent 2a3a93d commit 8f62f2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unittests/allplatformstests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3098,7 +3098,10 @@ def test_python_build_config_extensions(self):
30983098
'libpython': {
30993099
'dynamic': sysconfig.get_config_var('LDLIBRARY'),
31003100
'static': sysconfig.get_config_var('LIBRARY'),
3101-
'link_extensions': True,
3101+
# set it to False on PyPy, since dylib is optional, but also
3102+
# the value is currently wrong:
3103+
# https://github.com/pypy/pypy/issues/5249
3104+
'link_extensions': '__pypy__' not in sys.builtin_module_names,
31023105
},
31033106
'c_api': {
31043107
'headers': sysconfig.get_path('include'),

0 commit comments

Comments
 (0)