Skip to content

Commit

Permalink
Merge pull request #7395 from chrahunt/tests/fix-setuptools-unexpecte…
Browse files Browse the repository at this point in the history
…d-warning

Ignore WARNING emitted by setuptools during test
  • Loading branch information
chrahunt authored Nov 23, 2019
2 parents 3ff2513 + 8d38b37 commit b3aced9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/functional/test_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ def test_uninstall_easy_installed_console_scripts(script):
"""
Test uninstalling package with console_scripts that is easy_installed.
"""
result = script.easy_install('discover')
# setuptools >= 42.0.0 deprecates easy_install and prints a warning when
# used
result = script.easy_install('discover', allow_stderr_warning=True)
assert script.bin / 'discover' + script.exe in result.files_created, (
sorted(result.files_created.keys())
)
Expand Down

0 comments on commit b3aced9

Please sign in to comment.