From 22154dc22a9815194b2b28a24f31d5e04dac3ade Mon Sep 17 00:00:00 2001
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Wed, 14 Aug 2019 17:13:03 +0000
Subject: [PATCH] Use the corrent interpreter for testing
---
numexpr/tests/test_numexpr.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/numexpr/tests/test_numexpr.py b/numexpr/tests/test_numexpr.py
index eacbfba..6b79bf2 100644
--- a/numexpr/tests/test_numexpr.py
+++ b/numexpr/tests/test_numexpr.py
@@ -967,7 +967,7 @@ def test_max_threads_unset(self):
"import numexpr",
"assert(numexpr.nthreads <= 8)",
"exit(0)"])
- subprocess.check_call(['python', '-c', script])
+ subprocess.check_call([sys.executable, '-c', script])
def test_max_threads_set(self):
# Has to be done in a subprocess as `importlib.reload` doesn't let us
@@ -978,7 +978,7 @@ def test_max_threads_set(self):
"import numexpr",
"assert(numexpr.MAX_THREADS == 4)",
"exit(0)"])
- subprocess.check_call(['python', '-c', script])
+ subprocess.check_call([sys.executable, '-c', script])
def test_numexpr_num_threads(self):
with _environment('OMP_NUM_THREADS', '5'):