File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -601,8 +601,9 @@ def test_gaps(self):
601
601
assert len (lines ) == 1
602
602
l = lines [0 ]
603
603
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
606
607
data = np .ma .MaskedArray (data , mask = isna (data ), fill_value = np .nan )
607
608
608
609
assert isinstance (data , np .ma .core .MaskedArray )
@@ -624,8 +625,9 @@ def test_gap_upsample(self):
624
625
assert len (ax .right_ax .get_lines ()) == 1
625
626
l = lines [0 ]
626
627
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
629
631
data = np .ma .MaskedArray (data , mask = isna (data ), fill_value = np .nan )
630
632
631
633
assert isinstance (data , np .ma .core .MaskedArray )
You can’t perform that action at this time.
0 commit comments