Skip to content

Commit d426544

Browse files
Update src/_pytest/python_api.py
Co-authored-by: Bruno Oliveira <[email protected]>
1 parent db37e34 commit d426544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/python_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def _repr_compare(self, other_side: Mapping[object, float]) -> List[str]:
265265
approx_side_as_map.items(), other_side.values()
266266
):
267267
if approx_value != other_value:
268-
if not any((approx_value.expected is None, other_value is None)):
268+
if approx_value.expected is not None and other_value is not None:
269269
max_abs_diff = max(
270270
max_abs_diff, abs(approx_value.expected - other_value)
271271
)

0 commit comments

Comments
 (0)