From 9ca3c05f6dc8d53d11af80c1f2b965e93fb28cdf Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Wed, 29 Jul 2020 09:28:30 +0000 Subject: [PATCH] Exclude pylint==6.0 (#4300) https://github.com/pytest-dev/pytest/issues/7558 pylint throws error for `pytest.mark.*` functions in pytest6. ``` tests/unit/repo/test_repo.py:15:1: E1102: pytest.mark.parametrize is not callable (not-callable) tests/unit/repo/test_repo.py:33:1: E1102: pytest.mark.parametrize is not callable (not-callable) ************* Module tests.unit.remote.ssh.test_connection tests/unit/remote/ssh/test_connection.py:87:1: E1102: pytest.mark.skipif is not callable (not-callable) tests/unit/remote/ssh/test_connection.py:100:1: E1102: pytest.mark.skipif is not callable (not-callable) ``` https://github.com/iterative/dvc/pull/4257#issuecomment-665474467 --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 064cb12618..34fc250860 100644 --- a/setup.py +++ b/setup.py @@ -104,7 +104,9 @@ def run(self): tests_requirements = [ "wheel>=0.31.1", # Test requirements: - "pytest>=4.6.0", + # https://github.com/pytest-dev/pytest/issues/7558 + # FIXME: pylint complaining for pytest.mark.* on v6.0 + "pytest>=4.6.0,<6.0", "pytest-docker>=0.7.2", "pytest-timeout>=1.3.3", "pytest-cov>=2.6.1",