From c76269b48153a2abd5fe1a88d0305172cb30fb3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 9 Apr 2022 13:20:08 +0200 Subject: [PATCH] Skip test_get_makefile_filename on non-CPython The Makefile is specific to CPython and does not exist e.g. on PyPy installs. Skip the test appropriately. --- distutils/tests/test_sysconfig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distutils/tests/test_sysconfig.py b/distutils/tests/test_sysconfig.py index 66fb743e3d..e671f9e09b 100644 --- a/distutils/tests/test_sysconfig.py +++ b/distutils/tests/test_sysconfig.py @@ -40,6 +40,8 @@ def test_get_config_h_filename(self): @unittest.skipIf(sys.platform == 'win32', 'Makefile only exists on Unix like systems') + @unittest.skipIf(sys.implementation.name != 'cpython', + 'Makefile only exists in CPython') def test_get_makefile_filename(self): makefile = sysconfig.get_makefile_filename() self.assertTrue(os.path.isfile(makefile), makefile)