Skip to content

Commit a8c9fa7

Browse files
committed
Fix test without --enable-dynamic
Signed-off-by: Filipe Laíns <[email protected]>
1 parent 59d2263 commit a8c9fa7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_getpath.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,10 @@ class RealGetPathTests(unittest.TestCase):
880880
any(sys.platform.startswith(p) for p in ('linux', 'freebsd', 'centos')),
881881
'Test only support on Linux-like OS-es (support LD_LIBRARY_PATH)',
882882
)
883+
@unittest.skipUnless(
884+
sysconfig.get_config_var('LDLIBRARY') != sysconfig.get_config_var('LIBRARY'),
885+
'Test only available when using a dynamic libpython',
886+
)
883887
def test_builddir_wrong_library_warning(self):
884888
library_name = sysconfig.get_config_var('INSTSONAME')
885889
with tempfile.TemporaryDirectory() as tmpdir:

0 commit comments

Comments
 (0)