Skip to content

Commit e716a1f

Browse files
committed
Skip non-pkgconfig tests if .so can't be found
1 parent c12d627 commit e716a1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unittests/allplatformstests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3140,6 +3140,9 @@ def test_python_build_config_extensions(self):
31403140
if libpc is None:
31413141
continue
31423142
python_build_config['c_api']['pkgconfig_path'] = libpc
3143+
# Old Ubuntu versions have incorrect LIBDIR, skip testing non-pkgconfig variant there.
3144+
elif not os.path.exists(python_build_config['libpython']['dynamic']):
3145+
continue
31433146

31443147
with tempfile.NamedTemporaryFile(mode='w', delete=False, encoding='utf-8') as python_build_config_file:
31453148
json.dump(python_build_config, fp=python_build_config_file)

0 commit comments

Comments
 (0)