[Python-Dev] atexit test failing

Tim Peters tim.one@comcast.net
Tue, 16 Jul 2002 20:33:54 -0400


[Neal Norwitz]
> 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.

I wondered about that, but figured "it must be safe" since test_popen's
_do_test_commandline also does a popen("python ...").

So what I'm actually assuming is that you don't have a broken Python first
on your path <wink>.

> Would it be safer to use the patch below which replaces:
> 	"python " + fname
> with
> 	"%s %s" % (sys.executable, fname)

I don't know.  For example, does that work for you?  If so, that would be a
good start.  It works for me, so I'll check that in.