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 vinay.sajip
Recipients ned.deily, ronaldoussoren, vinay.sajip
Date 2012-07-13.18:27:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342204070.6.0.586370941227.issue15307@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.

The first part of the test which includes line 95 (commented as "check our prefixes") checks the Python running the test, which is not running in a venv. The next part ("check a venv's prefixes") *does* run in a venv (using a subprocess to invoke the venv's Python), and the test compares the venv's prefixes to expected values. So, this test isn't wrong AFAICT, and has worked fine both on source builds and installed builds - so if it doesn't work after applying the patch, ISTM something else must be wrong.
History
Date User Action Args
2012-07-13 18:27:50vinay.sajipsetrecipients: + vinay.sajip, ronaldoussoren, ned.deily
2012-07-13 18:27:50vinay.sajipsetmessageid: <1342204070.6.0.586370941227.issue15307@psf.upfronthosting.co.za>
2012-07-13 18:27:50vinay.sajiplinkissue15307 messages
2012-07-13 18:27:49vinay.sajipcreate