diff --git a/setup.cfg b/setup.cfg index cdc1dfe00..c68187063 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,4 @@ -[pytest] +[tool:pytest] addopts = --ignore pip/_vendor --ignore tests/tests_cache [bdist_wheel] diff --git a/tests/functional/test_uninstall.py b/tests/functional/test_uninstall.py index ed18357d2..c131f62a1 100644 --- a/tests/functional/test_uninstall.py +++ b/tests/functional/test_uninstall.py @@ -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 ) diff --git a/tests/unit/test_finder.py b/tests/unit/test_finder.py index 50c342c42..24896ed92 100644 --- a/tests/unit/test_finder.py +++ b/tests/unit/test_finder.py @@ -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): diff --git a/tests/unit/test_wheel.py b/tests/unit/test_wheel.py index 93e555018..1cf4dcfec 100644 --- a/tests/unit/test_wheel.py +++ b/tests/unit/test_wheel.py @@ -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 == []