Skip to content

Commit

Permalink
fix test_entrypoints_work test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sbidoul committed Apr 10, 2020
1 parent f781612 commit e6245f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/functional/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def test_entrypoints_work(entrypoint, script):
)
""".format(entrypoint)))

script.pip("install", "-vvv", str(fake_pkg))
# expect_temp=True, because pip install calls setup.py which
# in turn creates fake_pkg.egg-info.
script.pip("install", "-vvv", str(fake_pkg), expect_temp=True)
result = script.pip("-V")
result2 = script.run("fake_pip", "-V", allow_stderr_warning=True)
assert result.stdout == result2.stdout
Expand Down

0 comments on commit e6245f0

Please sign in to comment.