summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Anderson <cmawebsite@gmail.com>2014-12-17 17:49:50 -0500
committerTim Graham <timograham@gmail.com>2014-12-17 20:09:24 -0500
commit4fb38b73073dcd54f4af41a2af14dbc36f5d9f33 (patch)
treeebba1ef456339c715e78e1781e4ffc06ffb8a9ed
parent493ab45349e7768cba137207b8a27282921e9388 (diff)
Allowed Python executable names other than python in test from refs #24007.
-rw-r--r--tests/model_regress/test_pickle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/model_regress/test_pickle.py b/tests/model_regress/test_pickle.py
index ab70b4ec91..e52dc58783 100644
--- a/tests/model_regress/test_pickle.py
+++ b/tests/model_regress/test_pickle.py
@@ -1,6 +1,7 @@
import datetime
import pickle
import subprocess
+import sys
import tempfile
import warnings
@@ -82,7 +83,7 @@ print(article.headline)"""
script.write(script_template % pickle.dumps(a))
script.flush()
try:
- result = subprocess.check_output(['python', script.name])
+ result = subprocess.check_output([sys.executable, script.name])
except subprocess.CalledProcessError:
self.fail("Unable to reload model pickled data")
self.assertEqual(result.strip().decode(), "Some object")