1
1
Fork 0
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:
Alex Gaynor 2017-03-20 11:45:29 -04:00
parent cee7a53712
commit 3e527f2fbf
4 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
[pytest]
[tool:pytest]
addopts = --ignore pip/_vendor --ignore tests/tests_cache
[bdist_wheel]

View file

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

View file

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

View file

@ -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 == []