Skip to content

Commit fd47414

Browse files
committed
cleaned test case
1 parent 160a4e3 commit fd47414

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/tests/dtypes/cast/test_find_common_type.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,7 @@ def test_interval_dtype(left, right):
158158
# i.e. numeric
159159
if right.subtype.kind in ["i", "u", "f"]:
160160
# both numeric -> common numeric subtype
161-
if (
162-
left.subtype.kind == "i"
163-
and right.subtype.kind == "u"
164-
or left.subtype.kind == "u"
165-
and right.subtype.kind == "i"
166-
):
161+
if (left.subtype.kind, right.subtype.kind) in [("i", "u"), ("u", "i")]:
167162
assert result == object
168163
else:
169164
expected = IntervalDtype(np.float64, "right")

0 commit comments

Comments
 (0)