[issue15307] Patch for --symlink support in pyvenv with framework python

Vinay Sajip report at bugs.python.org
Fri Jul 13 20:27:50 CEST 2012


Vinay Sajip <vinay_sajip at 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 <report at bugs.python.org>
<http://bugs.python.org/issue15307>
_______________________________________


More information about the Python-bugs-list mailing list