Commit 4fb38b73 authored by Collin Anderson's avatar Collin Anderson Committed by Tim Graham
Browse files

Allowed Python executable names other than python in test from refs #24007.

parent 493ab453
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
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")