Skip to content

Commit 7393054

Browse files
committed
Fixup tests
1 parent 7640355 commit 7393054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/tests/test_validate_unwanted_patterns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ def test_nodefault_used_not_only_for_typing_raises(self, data, expected) -> None
311311
],
312312
)
313313
@pytest.mark.parametrize("pdlint_ignore", [True, False])
314-
315314
def test_doesnt_use_pandas_warnings(function, positional, category, pdlint_ignore):
316315
code = (
317316
f"{function}({' # pdlint: ignore[warning_class]' if pdlint_ignore else ''}\n"
@@ -327,6 +326,7 @@ def test_doesnt_use_pandas_warnings(function, positional, category, pdlint_ignor
327326
result = list(validate_unwanted_patterns.doesnt_use_pandas_warnings(fd))
328327
if flag_issue:
329328
assert len(result) == 1
330-
assert result[0] == (1, f"Don't use {category}")
329+
assert result[0][0] == 1
330+
assert result[0][1].startswith(f"Don't use {category}")
331331
else:
332332
assert len(result) == 0

0 commit comments

Comments
 (0)