Skip to content

Commit 512d098

Browse files
committed
fix test_entrypoints_work test
Since we now build in place, pip install calls setup.py in place which in turn creates fake_pkg.egg-info. Since in this test the package we are installing is in script.temp_path, we must tell script to expect temporary files to be created.
1 parent 2de135b commit 512d098

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/functional/test_cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ def test_entrypoints_work(entrypoint, script):
2727
)
2828
""".format(entrypoint)))
2929

30-
script.pip("install", "-vvv", str(fake_pkg))
30+
# expect_temp=True, because pip install calls setup.py which
31+
# in turn creates fake_pkg.egg-info.
32+
script.pip("install", "-vvv", str(fake_pkg), expect_temp=True)
3133
result = script.pip("-V")
3234
result2 = script.run("fake_pip", "-V", allow_stderr_warning=True)
3335
assert result.stdout == result2.stdout

0 commit comments

Comments
 (0)