Skip to content

Commit 467c4c9

Browse files
committed
Fixing the linter always has its side-effects 🔪
1 parent 6378735 commit 467c4c9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test__deprecation.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ def test_renamed_key_items_warning():
119119
assert data_dict_wrapped["new_key1"] == [1, 2, 3]
120120
assert data_dict_wrapped["new_key2"] == [4, 5, 6]
121121
assert data_dict_wrapped["another_key"] == [7, 8, 9]
122-
with pytest.warns(Warning, match="use `new_key1` instead of `old_key1`."):
122+
with pytest.warns(Warning, match="use 'new_key1' instead of 'old_key1'."):
123123
assert data_dict_wrapped["old_key1"] == [1, 2, 3]
124124
# check yet again, to ensure there is no weird persistences
125-
with pytest.warns(Warning, match="use `new_key1` instead of `old_key1`."):
125+
with pytest.warns(Warning, match="use 'new_key1' instead of 'old_key1'."):
126126
assert data_dict_wrapped["old_key1"] == [1, 2, 3]
127127

128128
# Test on a DataFrame
@@ -138,9 +138,9 @@ def test_renamed_key_items_warning():
138138
assert "old_key2" not in data_df.columns
139139
# Check that the old key still exists in the DataFrame
140140
assert data_df["new_key1"].tolist() == [1, 2, 3]
141-
with pytest.warns(Warning, match="use `new_key1` instead of `old_key1`."):
141+
with pytest.warns(Warning, match="use 'new_key1' instead of 'old_key1'."):
142142
assert data_df["old_key1"].tolist() == [1, 2, 3]
143-
with pytest.warns(Warning, match="use `new_key1` instead of `old_key1`."):
143+
with pytest.warns(Warning, match="use 'new_key1' instead of 'old_key1'."):
144144
assert data_df["old_key1"].tolist() == [1, 2, 3]
145145

146146
# Test chaining decorators, on a dict, first new_key1, then new_key2
@@ -154,7 +154,7 @@ def test_renamed_key_items_warning():
154154
assert "new_key1" in data_dict_wrapped
155155
assert "new_key2" in data_dict_wrapped
156156

157-
with pytest.warns(Warning, match="use `new_key1` instead of `old_key1`."):
157+
with pytest.warns(Warning, match="use 'new_key1' instead of 'old_key1'."):
158158
assert data_dict_wrapped["old_key1"] == [1, 2, 3]
159-
with pytest.warns(Warning, match="use `new_key2` instead of `old_key2`."):
159+
with pytest.warns(Warning, match="use 'new_key2' instead of 'old_key2'."):
160160
assert data_dict_wrapped["old_key2"] == [4, 5, 6]

0 commit comments

Comments
 (0)