Ignore WARNING emitted by setuptools during test

This commit is contained in:
Chris Hunt 2019-11-23 16:17:35 -05:00
parent 3ff2513537
commit 8d38b37052
1 changed files with 3 additions and 1 deletions

View File

@ -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())
)