Skip to content

Commit 2350e9d

Browse files
committed
Update tests, change whitespace
1 parent de0b341 commit 2350e9d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pandas/tests/util/test_assert_frame_equal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_empty_dtypes(check_dtype):
141141
df1["col1"] = df1["col1"].astype("int64")
142142

143143
if check_dtype:
144-
msg = "Attributes are different"
144+
msg = r"Attributes of DataFrame\..* are different"
145145
with pytest.raises(AssertionError, match=msg):
146146
assert_frame_equal(df1, df2, **kwargs)
147147
else:

pandas/util/testing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,9 @@ def assert_series_equal(
11561156
):
11571157
pass
11581158
else:
1159-
assert_attr_equal("dtype", left, right, obj="Attributes of {obj}".format(obj=obj))
1159+
assert_attr_equal(
1160+
"dtype", left, right, obj="Attributes of {obj}".format(obj=obj)
1161+
)
11601162

11611163
if check_exact:
11621164
assert_numpy_array_equal(

0 commit comments

Comments
 (0)