Skip to content

Commit b3aced9

Browse files
authored
Merge pull request #7395 from chrahunt/tests/fix-setuptools-unexpected-warning
Ignore WARNING emitted by setuptools during test
2 parents 3ff2513 + 8d38b37 commit b3aced9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/functional/test_uninstall.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ def test_uninstall_easy_installed_console_scripts(script):
276276
"""
277277
Test uninstalling package with console_scripts that is easy_installed.
278278
"""
279-
result = script.easy_install('discover')
279+
# setuptools >= 42.0.0 deprecates easy_install and prints a warning when
280+
# used
281+
result = script.easy_install('discover', allow_stderr_warning=True)
280282
assert script.bin / 'discover' + script.exe in result.files_created, (
281283
sorted(result.files_created.keys())
282284
)

0 commit comments

Comments
 (0)