@@ -684,7 +684,6 @@ def test_constructor_ndarray(self):
684
684
frame = DataFrame (['foo' , 'bar' ], index = [0 , 1 ], columns = ['A' ])
685
685
assert len (frame ) == 2
686
686
687
- @pytest .mark .skipif (PY2 , reason = "old numpy & py2" )
688
687
def test_constructor_maskedarray (self ):
689
688
self ._check_basic_constructor (ma .masked_all )
690
689
@@ -701,8 +700,6 @@ def test_constructor_maskedarray(self):
701
700
frame = DataFrame (mat , columns = ['A' , 'B' , 'C' ], index = [1 , 2 ])
702
701
assert np .all (~ np .asarray (frame == frame ))
703
702
704
- @pytest .mark .skipif (PY2 and _np_version_under1p13 ,
705
- reason = "old numpy & py2" )
706
703
def test_constructor_maskedarray_nonfloat (self ):
707
704
# masked int promoted to float
708
705
mat = ma .masked_all ((2 , 3 ), dtype = int )
@@ -770,8 +767,6 @@ def test_constructor_maskedarray_nonfloat(self):
770
767
assert frame ['A' ][1 ] is True
771
768
assert frame ['C' ][2 ] is False
772
769
773
- @pytest .mark .skipif (PY2 and _np_version_under1p13 ,
774
- reason = "old numpy & py2" )
775
770
def test_constructor_maskedarray_hardened (self ):
776
771
# Check numpy masked arrays with hard masks -- from GH24574
777
772
mat_hard = ma .masked_all ((2 , 2 ), dtype = float ).harden_mask ()
@@ -794,8 +789,6 @@ def test_constructor_maskedarray_hardened(self):
794
789
dtype = float )
795
790
tm .assert_frame_equal (result , expected )
796
791
797
- @pytest .mark .skipif (PY2 and _np_version_under1p13 ,
798
- reason = "old numpy & py2" )
799
792
def test_constructor_maskedrecarray_dtype (self ):
800
793
# Ensure constructor honors dtype
801
794
data = np .ma .array (
@@ -807,8 +800,6 @@ def test_constructor_maskedrecarray_dtype(self):
807
800
columns = ['date' , 'price' ])
808
801
tm .assert_frame_equal (result , expected )
809
802
810
- @pytest .mark .skipif (PY2 and _np_version_under1p13 ,
811
- reason = "old numpy & py2" )
812
803
def test_constructor_mrecarray (self ):
813
804
# Ensure mrecarray produces frame identical to dict of masked arrays
814
805
# from GH3479
0 commit comments