mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2025-01-11 08:56:14 +01:00
Tests: Don't get fooled by test.egg-info directory in PWD
This commit is contained in:
parent
783c2ea1ec
commit
868482fd79
@ -240,11 +240,13 @@ def test_regular_after_first_deps_only_is_supported():
|
||||
assert f"/.tox/{NATIVE_TOXENV}/bin/python" in lines[0]
|
||||
|
||||
# check that "test" was not installed to current environment
|
||||
shutil.rmtree("./test.egg-info")
|
||||
pip_freeze = subprocess.run(
|
||||
(sys.executable, "-m", "pip", "freeze"),
|
||||
encoding="utf-8",
|
||||
stdout=subprocess.PIPE,
|
||||
).stdout.splitlines()
|
||||
# XXX when this fails, recreate your current environment
|
||||
assert "test==0.0.0" not in pip_freeze
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user