Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:

> 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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15307>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to