Skip to content

Comparison with None performed with equality operators #2

@Cliffart44

Description

@Cliffart44


ruff check --fix
test\test_parameterizing_autouse_fixture.py:11:34: E711 Comparison to `None` should be `cond is not None`
   |
 9 | @pytest.mark.parametrize("multiply_fixture", [2, 3, 4], indirect=True)
10 | def test_multiplication(multiply_fixture):
11 |     assert multiply_fixture*5 != None
   |                                  ^^^^ E711
   |
   = help: Replace with `cond is not None`

Found 4 errors (3 fixed, 1 remaining).
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).

P.S. ruff format would be nice also 😉

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