Skip to content

Commit c76269b

Browse files
committed
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.
1 parent 2a233e5 commit c76269b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

distutils/tests/test_sysconfig.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def test_get_config_h_filename(self):
4040

4141
@unittest.skipIf(sys.platform == 'win32',
4242
'Makefile only exists on Unix like systems')
43+
@unittest.skipIf(sys.implementation.name != 'cpython',
44+
'Makefile only exists in CPython')
4345
def test_get_makefile_filename(self):
4446
makefile = sysconfig.get_makefile_filename()
4547
self.assertTrue(os.path.isfile(makefile), makefile)

0 commit comments

Comments
 (0)