This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients ned.deily, ronaldoussoren, vinay.sajip
Date 2012-07-13.13:57:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342187847.01.0.763242808682.issue15307@psf.upfronthosting.co.za>
In-reply-to
Content
v5 adds test cases for sys.executable and calls realpath on dirname(argv[0]) in pythonw.c and also has the changes in Ned's v4.

The test failure for test_venv is expected, the note in <http://docs.python.org/dev/library/venv.html> explains that "sys.base_prefix and sys.base_exec_prefix point to the non-venv Python installation which was used to create the venv". The test fails because it assumes that sys.base_prefix of the created venv is same as sys.prefix of the running python, which is not true when you create a venv in a venv.

In particular line 95 of test_venv explicitly tests that sys.prefix == sys.base_prefix, which should fail when running the test within a virtual env. Tweaking the test suite to avoid that failure is beyond the scope of this issue.
History
Date User Action Args
2012-07-13 13:57:27ronaldoussorensetrecipients: + ronaldoussoren, vinay.sajip, ned.deily
2012-07-13 13:57:27ronaldoussorensetmessageid: <1342187847.01.0.763242808682.issue15307@psf.upfronthosting.co.za>
2012-07-13 13:57:26ronaldoussorenlinkissue15307 messages
2012-07-13 13:57:26ronaldoussorencreate