Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

Commit c72c2a0

Browse files
committed
fixup some messages
1 parent fbf9bca commit c72c2a0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ a linter for pandas usage, please see [pandas-vet](https://github.com/deppen8/pa
2828
| PDF008 | found 'os.remove' (use 'tm.ensure_clean' instead) |
2929
| PDF009 | 'pytest.raises' used without 'match=' |
3030
| PDF010 | 'pytest.raises' used outside of context manager |
31-
| PDF011 | 'pytest.warns' used (use 'tm.assert_produces_warning' instead) |
31+
| PDF011 | found pytest.warns (use pandas._testing.assert_produces_warning) |
3232
| PDF012 | found pytest.xfail (use pytest.mark.xfail instead) |
3333
| PDF013 | import from 'conftest' found |
3434
| PDF014 | found import from 'pandas._testing' (use 'import pandas._testing as tm')|

pandas_dev_flaker/_plugins_tree/pytest_warns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
MSG = (
77
"PDF011 found pytest.warns "
8-
"(use pandas._testing.assert_produces_warning instead)"
8+
"(use pandas._testing.assert_produces_warning)"
99
)
1010

1111

tests/pytest_warns_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def test_noop(source):
3636
pytest.param(
3737
"from pytest import warns\n",
3838
"1:0: PDF011 found pytest.warns "
39-
"(use pandas._testing.assert_produces_warning instead)",
39+
"(use pandas._testing.assert_produces_warning)",
4040
id="warns used, imported from pytest",
4141
),
4242
pytest.param(
4343
"import pytest\n" "with pytest.warns(): pass",
4444
"2:5: PDF011 found pytest.warns "
45-
"(use pandas._testing.assert_produces_warning instead)",
45+
"(use pandas._testing.assert_produces_warning)",
4646
id="pytest.warns used",
4747
),
4848
),

0 commit comments

Comments
 (0)