Skip to content

Commit 997dd9d

Browse files
committed
missed a few
1 parent b417d6e commit 997dd9d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/tests/plotting/test_datetimelike.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,9 @@ def test_gaps(self):
601601
assert len(lines) == 1
602602
l = lines[0]
603603
data = l.get_xydata()
604-
if self.mpl_ge_3_0_0 or not self.mpl_ge_2_0_1:
605-
# 2.0.0 or >= 3.0.0
604+
if (self.mpl_ge_3_0_0 or not self.mpl_ge_2_0_1
605+
or (self.mpl_ge_2_1_0 and not self.mpl_ge_2_2_2)):
606+
# 2.0.0, 2.2.0 (exactly) or >= 3.0.0
606607
data = np.ma.MaskedArray(data, mask=isna(data), fill_value=np.nan)
607608

608609
assert isinstance(data, np.ma.core.MaskedArray)
@@ -624,8 +625,9 @@ def test_gap_upsample(self):
624625
assert len(ax.right_ax.get_lines()) == 1
625626
l = lines[0]
626627
data = l.get_xydata()
627-
if self.mpl_ge_3_0_0 or not self.mpl_ge_2_0_1:
628-
# 2.0.0 or >= 3.0.0
628+
if (self.mpl_ge_3_0_0 or not self.mpl_ge_2_0_1
629+
or (self.mpl_ge_2_1_0 and not self.mpl_ge_2_2_2)):
630+
# 2.0.0, 2.2.0 (exactly) or >= 3.0.0
629631
data = np.ma.MaskedArray(data, mask=isna(data), fill_value=np.nan)
630632

631633
assert isinstance(data, np.ma.core.MaskedArray)

0 commit comments

Comments
 (0)