[Python-Dev] atexit test failing

Neal Norwitz neal@metaslash.com
Tue, 16 Jul 2002 19:05:03 -0400


Tim:

test_atexit is failing for me because the test assumes that
the python being tested is the first one found in the path.
This is not true on my system.  Would it be safer to use the
patch below which replaces:
	"python " + fname
with
	"%s %s" % (sys.executable, fname)

Neal
--

> import sys
25c26
< p = os.popen("python " + fname)
---
> p = os.popen("%s %s" % (sys.executable, fname))
53c54
< p = os.popen("python " + fname)
---
> p = os.popen("%s %s" % (sys.executable, fname))