summaryrefslogtreecommitdiff
path: root/runtests.py
diff options
context:
space:
mode:
Diffstat (limited to 'runtests.py')
-rwxr-xr-xruntests.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/runtests.py b/runtests.py
index f1ea8e87d..0294bfef3 100755
--- a/runtests.py
+++ b/runtests.py
@@ -1797,12 +1797,20 @@ class EmbedTest(unittest.TestCase):
if sys.version_info[0] >=3 and CY3_DIR:
cython = os.path.join(CY3_DIR, cython)
cython = os.path.abspath(os.path.join('..', '..', cython))
- self.assertEqual(0, os.system(
- "make PYTHON='%s' CYTHON='%s' LIBDIR1='%s' test > make.output" % (sys.executable, cython, libdir)))
+
try:
- os.remove('make.output')
- except OSError:
- pass
+ subprocess.check_output([
+ "make",
+ "PYTHON='%s'" % sys.executable,
+ "CYTHON='%s'" % cython,
+ "LIBDIR1='%s'" % libdir,
+ "paths", "test",
+ ])
+ except subprocess.CalledProcessError as err:
+ print(err.output.decode())
+ raise
+ self.assertTrue(True) # :)
+
class MissingDependencyExcluder(object):