Skip to content

False error: pylint + pytest 6 - pytest.mark.parametrize is not callable (not-callable) #3755

Closed
@adamtheturtle

Description

@adamtheturtle

Steps to reproduce

Use pytest.mark.parametrize, e.g.

"""
Example pytest mark.
"""

import pytest

@pytest.mark.parametrize('sample', [0])
def test_example(sample):
    """
    Example test.
    """
    assert sample == 0

Install pytest==6.0.0.
Run pylint.

Current behavior

  • The test passes when running pytest.

I see the error:

test_example.py:7:1: E1102: pytest.mark.parametrize is not callable (not-callable)

This error is not shown with pytest==5.4.3.

Expected behavior

No error is shown.

pylint --version output

pylint 2.5.3
astroid 2.4.2
Python 3.8.5 (default, Jul 21 2020, 10:48:26) 
[Clang 11.0.3 (clang-1103.0.32.62)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions