diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-07-17 00:34:26 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-07-17 00:34:26 (GMT) |
commit | c7b6bedecf17fb71cdea9b2fc012816f3e3d4e69 (patch) | |
tree | 253b706ece74e71f03ba8c2c2b7f39bb5b149bad /Lib | |
parent | a64295b43a3461c9451e10dd3094c06cfc32a5d4 (diff) | |
download | cpython-c7b6bedecf17fb71cdea9b2fc012816f3e3d4e69.zip cpython-c7b6bedecf17fb71cdea9b2fc012816f3e3d4e69.tar.gz cpython-c7b6bedecf17fb71cdea9b2fc012816f3e3d4e69.tar.bz2 |
Use sys.executable to run Python, as suggested by Neal Norwitz.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_atexit.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_atexit.py b/Lib/test/test_atexit.py index ad5bced..64c4c3c 100644 --- a/Lib/test/test_atexit.py +++ b/Lib/test/test_atexit.py @@ -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, """\ |