Skip to content

pytest 6: pylint still shows not-callable error for builtin pytest marks even after #7473 and #7476 #7558

Closed
@dgilland

Description

@dgilland

I'm experiencing #7473 after the fix in #7476 with the following:

import pytest

@pytest.mark.parametrize('a', [1, 2])
def test_a(a):
    pass

Where pylint still shows not-callable for pytest.mark.parametrize:

$ pylint -E test_pytest_7473.py
************* Module test_pytest_7473
test_pytest_7473.py:3:1: E1102: pytest.mark.parametrize is not callable (not-callable)

Environment:

  • Python 3.8
  • pytest==6.0.0
  • pylint==2.5.3

FYI @bluetech

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions