Skip to content

Commit 01bf00e

Browse files
committed
making if statements consistent
1 parent 236b8c3 commit 01bf00e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/frame/methods/test_between_time.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ def test_between_time(self, close_open_fixture, frame_or_series):
122122
assert len(filtered) == exp_len
123123
for rs in filtered.index:
124124
t = rs.time()
125-
if inclusive == "left" or inclusive == "both":
125+
if inclusive in ["left", "both"]:
126126
assert (t >= stime) or (t <= etime)
127127
else:
128128
assert (t > stime) or (t <= etime)
129129

130-
if inclusive == "right" or inclusive == "both":
130+
if inclusive in ["right", "both"]:
131131
assert (t <= etime) or (t >= stime)
132132
else:
133133
assert (t < etime) or (t >= stime)

0 commit comments

Comments
 (0)