A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-July/026620.html below:

[Python-Dev] atexit test failing

[Python-Dev] atexit test failing [Python-Dev] atexit test failingNeal 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))




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4