Description
Environment
- pip version: 19.2.3
- Python version: 3.7.7
- OS: OSX 10.15.3
Description
While trying to write some unit tests while referring to
pip/tests/functional/test_uninstall.py
Line 528 in 8c95de1
I came across two member variables from the script
fixture, one is script.site_packages_path
which points to site-packages which lies inside virtualenv created by pytest while running test cases and the other is script.site_packages
, which points to site-packages inside virtualenv which is being used as a development environment for pip
For example:
script.site_packages
=> /Users/xyz/pip/venv/lib/python3.7/site-packages
script.site_packages_path
=> /private/var/folders/xg/blp845_s0xn093dyrtgy936h0000gp/T/pytest-of-xyz/pytest-1/test_uninstall_editable_and_pi0/workspace/venv/lib/python3.7/site-packages
Expected behavior
The two variable names should be cleaned up so that they can refer to their actual meanings. The current names are similar sounding but have pretty different uses
How to Reproduce
Run any test case within test_uninstall.py, enabling console print output by -s
e.g.
tox -e py tests/functional/test_uninstall.py::test_uninstall_editable_and_pip_install -s
, and add print statements within a function to see the values