mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Fixed some pytest warnings in the tests
This commit is contained in:
parent
cee7a53712
commit
3e527f2fbf
4 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
[pytest]
|
||||
[tool:pytest]
|
||||
addopts = --ignore pip/_vendor --ignore tests/tests_cache
|
||||
|
||||
[bdist_wheel]
|
||||
|
|
|
@ -395,7 +395,7 @@ def test_uninstallpathset_no_paths(caplog):
|
|||
|
||||
assert (
|
||||
"Can't uninstall 'pip'. No files were found to uninstall."
|
||||
in caplog.text()
|
||||
in caplog.text
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ class TestWheel:
|
|||
|
||||
assert (
|
||||
"invalid.whl; invalid wheel filename"
|
||||
in caplog.text()
|
||||
in caplog.text
|
||||
)
|
||||
|
||||
def test_not_find_wheel_not_supported(self, data, monkeypatch):
|
||||
|
|
|
@ -356,7 +356,7 @@ class TestWheelBuilder(object):
|
|||
wheel_download_dir='/wheel/dir')
|
||||
wb = wheel.WheelBuilder(reqset, Mock())
|
||||
wb.build()
|
||||
assert "due to already being wheel" in caplog.text()
|
||||
assert "due to already being wheel" in caplog.text
|
||||
assert mock_build_one.mock_calls == []
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue