@@ -406,10 +406,10 @@ def test_get_finder(self):
406
406
def test_finder_daily (self ):
407
407
day_lst = [10 , 40 , 252 , 400 , 950 , 2750 , 10000 ]
408
408
409
- if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 :
410
- # 2.2.0 (exactly) or >= 3.0.0
409
+ if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 or self . mpl_eq_2_1_0 :
410
+ # 2.1.0, 2. 2.0 (exactly) or >= 3.0.0
411
411
xpl1 = xpl2 = [Period ('1999-1-1' , freq = 'B' ).ordinal ] * len (day_lst )
412
- else : # 2.1.0 , 2.2.2, 2.2.3, 2.2.4
412
+ else : # 2.1.2 , 2.2.2, 2.2.3, 2.2.4
413
413
xpl1 = [7565 , 7564 , 7553 , 7546 , 7518 , 7428 , 7066 ]
414
414
xpl2 = [7566 , 7564 , 7554 , 7546 , 7519 , 7429 , 7066 ]
415
415
@@ -435,10 +435,10 @@ def test_finder_daily(self):
435
435
def test_finder_quarterly (self ):
436
436
yrs = [3.5 , 11 ]
437
437
438
- if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 :
439
- # 2.2.0 (exactly) or >= 3.0.0
438
+ if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 or self . mpl_eq_2_1_0 :
439
+ # 2.1.0, 2. 2.0 (exactly) or >= 3.0.0
440
440
xpl1 = xpl2 = [Period ('1988Q1' ).ordinal ] * len (yrs )
441
- else : # 2.1.0 , 2.2.2, 2.2.3, 2.2.4
441
+ else : # 2.1.2 , 2.2.2, 2.2.3, 2.2.4
442
442
xpl1 = [68 , 68 ]
443
443
xpl2 = [72 , 68 ]
444
444
@@ -464,10 +464,10 @@ def test_finder_quarterly(self):
464
464
def test_finder_monthly (self ):
465
465
yrs = [1.15 , 2.5 , 4 , 11 ]
466
466
467
- if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 :
468
- # 2.2.0 (exactly) or >= 3.0.0
467
+ if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 or self . mpl_eq_2_1_0 :
468
+ # 2.1.0, 2. 2.0 (exactly) or >= 3.0.0
469
469
xpl1 = xpl2 = [Period ('Jan 1988' ).ordinal ] * len (yrs )
470
- else : # 2.1.0 , 2.2.2, 2.2.3, 2.2.4
470
+ else : # 2.1.2 , 2.2.2, 2.2.3, 2.2.4
471
471
xpl1 = [216 , 216 , 204 , 204 ]
472
472
xpl2 = [216 , 216 , 216 , 204 ]
473
473
@@ -501,10 +501,10 @@ def test_finder_monthly_long(self):
501
501
502
502
@pytest .mark .slow
503
503
def test_finder_annual (self ):
504
- if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 :
505
- # 2.2.0 (exactly) or >= 3.0.0
504
+ if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 or self . mpl_eq_2_1_0 :
505
+ # 2.1.0, 2. 2.0 (exactly) or >= 3.0.0
506
506
xp = [1987 , 1988 , 1990 , 1990 , 1995 , 2020 , 2070 , 2170 ]
507
- else : # 2.1.0 , 2.2.2, 2.2.3, 2.2.4
507
+ else : # 2.1.2 , 2.2.2, 2.2.3, 2.2.4
508
508
xp = [1986 , 1986 , 1990 , 1990 , 1995 , 2020 , 1970 , 1970 ]
509
509
510
510
xp = [Period (x , freq = 'A' ).ordinal for x in xp ]
@@ -556,8 +556,8 @@ def test_gaps(self):
556
556
line = lines [0 ]
557
557
data = line .get_xydata ()
558
558
559
- if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 :
560
- # 2.2.0 (exactly) or >= 3.0.0
559
+ if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 or self . mpl_eq_2_1_0 :
560
+ # 2.1.0, 2. 2.0 (exactly) or >= 3.0.0
561
561
data = np .ma .MaskedArray (data , mask = isna (data ), fill_value = np .nan )
562
562
563
563
assert isinstance (data , np .ma .core .MaskedArray )
@@ -576,8 +576,8 @@ def test_gaps(self):
576
576
line = lines [0 ]
577
577
data = line .get_xydata ()
578
578
579
- if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 :
580
- # 2.2.0 (exactly) or >= 3.0.0
579
+ if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 or self . mpl_eq_2_1_0 :
580
+ # 2.1.0, 2. 2.0 (exactly) or >= 3.0.0
581
581
data = np .ma .MaskedArray (data , mask = isna (data ), fill_value = np .nan )
582
582
583
583
assert isinstance (data , np .ma .core .MaskedArray )
@@ -595,8 +595,8 @@ def test_gaps(self):
595
595
assert len (lines ) == 1
596
596
line = lines [0 ]
597
597
data = line .get_xydata ()
598
- if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 :
599
- # 2.2.0 (exactly) or >= 3.0.0
598
+ if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 or self . mpl_eq_2_1_0 :
599
+ # 2.1.0, 2. 2.0 (exactly) or >= 3.0.0
600
600
data = np .ma .MaskedArray (data , mask = isna (data ), fill_value = np .nan )
601
601
602
602
assert isinstance (data , np .ma .core .MaskedArray )
@@ -619,8 +619,8 @@ def test_gap_upsample(self):
619
619
620
620
line = lines [0 ]
621
621
data = line .get_xydata ()
622
- if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 :
623
- # 2.2.0 (exactly) or >= 3.0.0
622
+ if self .mpl_ge_3_0_0 or self .mpl_eq_2_2_0 or self . mpl_eq_2_1_0 :
623
+ # 2.1.0, 2. 2.0 (exactly) or >= 3.0.0
624
624
data = np .ma .MaskedArray (data , mask = isna (data ), fill_value = np .nan )
625
625
626
626
assert isinstance (data , np .ma .core .MaskedArray )
0 commit comments