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