Skip to content

Commit

Permalink
Manual fix for fmt off fmt on around pytest parametrize with bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Feb 1, 2024
1 parent 2db3209 commit 3d53bbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/test_assertrewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -1856,10 +1856,10 @@ def test_simple():
result.assert_outcomes(passed=1)


# fmt: off
@pytest.mark.parametrize(
("src", "expected"),
(
# fmt: off
pytest.param(b"", {}, id="trivial"),
pytest.param(
b"def x(): assert 1\n",
Expand Down Expand Up @@ -1936,9 +1936,9 @@ def test_simple():
{1: "5"},
id="no newline at end of file",
),
# fmt: on
),
)
# fmt: on
def test_get_assertion_exprs(src, expected) -> None:
assert _get_assertion_exprs(src) == expected

Expand Down

0 comments on commit 3d53bbe

Please sign in to comment.