Skip to content

Commit fe5e882

Browse files
committed
Fix test availability
Signed-off-by: Filipe Laíns <[email protected]
1 parent 7bb0e9f commit fe5e882

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Lib/test/test_getpath.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,10 @@ class RealGetPathTests(unittest.TestCase):
876876
sysconfig.is_python_build(),
877877
'Test only available when running from the buildir',
878878
)
879-
@unittest.skipUnless(os.name == 'posix', 'Test only support on POSIX')
879+
@unittest.skipUnless(
880+
os.name == 'posix' and sys.platform != 'darwin',
881+
'Test only support on Linux-like OS-es (support LD_LIBRARY_PATH)',
882+
)
880883
def test_builddir_wrong_library_warning(self):
881884
library_name = sysconfig.get_config_var('INSTSONAME')
882885
with tempfile.TemporaryDirectory() as tmpdir:
@@ -891,7 +894,7 @@ def test_builddir_wrong_library_warning(self):
891894
env=env, check=True, capture_output=True, text=True,
892895
)
893896
error_msg = 'The runtime library has been loaded from outside the build directory'
894-
self.assertTrue(process.stderr.startswith(error_msg))
897+
self.assertTrue(process.stderr.startswith(error_msg), process.stderr)
895898

896899

897900
# ******************************************************************************

0 commit comments

Comments
 (0)