mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2025-01-11 17:06:13 +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]
|
assert f"/.tox/{NATIVE_TOXENV}/bin/python" in lines[0]
|
||||||
|
|
||||||
# check that "test" was not installed to current environment
|
# check that "test" was not installed to current environment
|
||||||
|
shutil.rmtree("./test.egg-info")
|
||||||
pip_freeze = subprocess.run(
|
pip_freeze = subprocess.run(
|
||||||
(sys.executable, "-m", "pip", "freeze"),
|
(sys.executable, "-m", "pip", "freeze"),
|
||||||
encoding="utf-8",
|
encoding="utf-8",
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
).stdout.splitlines()
|
).stdout.splitlines()
|
||||||
|
# XXX when this fails, recreate your current environment
|
||||||
assert "test==0.0.0" not in pip_freeze
|
assert "test==0.0.0" not in pip_freeze
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user