Kaydet (Commit) c7b6bede authored tarafından Tim Peters's avatar Tim Peters

Use sys.executable to run Python, as suggested by Neal Norwitz.

üst a64295b4
......@@ -2,6 +2,7 @@
from test_support import TESTFN, vereq
import atexit
import os
import sys
input = """\
import atexit
......@@ -22,7 +23,7 @@ f = file(fname, "w")
f.write(input)
f.close()
p = os.popen("python " + fname)
p = os.popen("%s %s" % (sys.executable, fname))
output = p.read()
p.close()
vereq(output, """\
......@@ -50,7 +51,7 @@ f = file(fname, "w")
f.write(input)
f.close()
p = os.popen("python " + fname)
p = os.popen("%s %s" % (sys.executable, fname))
output = p.read()
p.close()
vereq(output, """\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment