Skip to content

Commit 08db434

Browse files
committed
mingw_smoketests: skip test_c_ext_build for in-tree builds
1 parent af6001e commit 08db434

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mingw_smoketests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ def test_site(self):
283283
self.assertEqual(len(site.getsitepackages()), 1)
284284

285285
def test_c_ext_build(self):
286+
# This will not work in in-tree build
287+
if sysconfig.is_python_build():
288+
raise unittest.SkipTest("in-tree build")
289+
286290
import tempfile
287291
import sys
288292
import subprocess

0 commit comments

Comments
 (0)