Skip to content

Commit abf6943

Browse files
authored
Exclude pylint==6.0
pytest-dev/pytest#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) ``` #4257 (comment)
1 parent 31efaac commit abf6943

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ def run(self):
104104
tests_requirements = [
105105
"wheel>=0.31.1",
106106
# Test requirements:
107-
"pytest>=4.6.0",
107+
# https://github.com/pytest-dev/pytest/issues/7558
108+
# FIXME: pylint complaining for pytest.mark.* on v6.0
109+
"pytest>=4.6.0,<6.0",
108110
"pytest-docker>=0.7.2",
109111
"pytest-timeout>=1.3.3",
110112
"pytest-cov>=2.6.1",

0 commit comments

Comments
 (0)