Skip to content

Commit 8b2f085

Browse files
Remove return values for asserts
Unless they are context managers.
1 parent bb43726 commit 8b2f085

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/util/testing.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def assert_almost_equal(left, right, check_dtype="equiv",
321321
else:
322322
obj = "Input"
323323
assert_class_equal(left, right, obj=obj)
324-
return _testing.assert_almost_equal(
324+
_testing.assert_almost_equal(
325325
left, right,
326326
check_dtype=check_dtype,
327327
check_less_precise=check_less_precise,
@@ -359,7 +359,7 @@ def _check_isinstance(left, right, cls):
359359
def assert_dict_equal(left, right, compare_keys=True):
360360

361361
_check_isinstance(left, right, dict)
362-
return _testing.assert_dict_equal(left, right, compare_keys=compare_keys)
362+
_testing.assert_dict_equal(left, right, compare_keys=compare_keys)
363363

364364

365365
def randbool(size=(), p=0.5):
@@ -1167,8 +1167,6 @@ def _raise(left, right, err_msg):
11671167
if isinstance(left, np.ndarray) and isinstance(right, np.ndarray):
11681168
assert_attr_equal('dtype', left, right, obj=obj)
11691169

1170-
return True
1171-
11721170

11731171
def assert_extension_array_equal(left, right, check_dtype=True,
11741172
check_less_precise=False,

0 commit comments

Comments
 (0)