Skip to content

Commit 8563db0

Browse files
Raisa DzhamtyrovaRaisa Dzhamtyrova
Raisa Dzhamtyrova
authored and
Raisa Dzhamtyrova
committed
cleanups to the code
1 parent 1fdf6ed commit 8563db0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pandas/tests/extension/json/test_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def test_custom_asserts(self):
136136
self.assert_frame_equal(a.to_frame(), a.to_frame())
137137

138138
b = pd.Series(data.take([0, 0, 1]))
139-
msg = r"ExtensionArray are different.*"
139+
msg = r"ExtensionArray are different"
140140
with pytest.raises(AssertionError, match=msg):
141141
self.assert_series_equal(a, b)
142142

pandas/tests/extension/test_boolean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _check_op(self, s, op, other, op_name, exc=NotImplementedError):
112112
# subtraction for bools raises TypeError (but not yet in 1.13)
113113
if _np_version_under1p14:
114114
pytest.skip("__sub__ does not yet raise in numpy 1.13")
115-
msg = r"numpy boolean subtract, the \`-\` operator.*"
115+
msg = r"numpy boolean subtract, the \`-\` operator"
116116
with pytest.raises(TypeError, match=msg):
117117
op(s, other)
118118
return

pandas/tests/frame/methods/test_isin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_isin_df_dupe_values(self):
9696
df1 = DataFrame({"A": [1, 2, 3, 4], "B": [2, np.nan, 4, 4]})
9797
# just cols duped
9898
df2 = DataFrame([[0, 2], [12, 4], [2, np.nan], [4, 5]], columns=["B", "B"])
99-
msg = "cannot compute isin with a duplicate axis."
99+
msg = r"cannot compute isin with a duplicate axis\."
100100
with pytest.raises(ValueError, match=msg):
101101
df1.isin(df2)
102102

pandas/tests/frame/methods/test_replace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ def test_categorical_replace_with_dict(self, replace_dict, final_data):
13101310
tm.assert_frame_equal(result, expected)
13111311
msg = (
13121312
r"Attributes of DataFrame.iloc\[:, 0\] "
1313-
r"\(column name=\"a\"\) are different.*"
1313+
r"\(column name=\"a\"\) are different"
13141314
)
13151315
with pytest.raises(AssertionError, match=msg):
13161316
# ensure non-inplace call does not affect original

0 commit comments

Comments
 (0)