@@ -506,19 +506,6 @@ def test_is_homogeneous_type(self):
506
506
assert Series ([1 , 2 ])._is_homogeneous_type
507
507
assert Series (pd .Categorical ([1 , 2 ]))._is_homogeneous_type
508
508
509
- @pytest .mark .parametrize (
510
- "data" ,
511
- [
512
- pd .period_range ("2000" , periods = 4 ),
513
- pd .IntervalIndex .from_breaks ([1 , 2 , 3 , 4 ]),
514
- ],
515
- )
516
- def test_values_compatibility (self , data ):
517
- # https://github.com/pandas-dev/pandas/issues/23995
518
- result = pd .Series (data ).values
519
- expected = np .array (data .astype (object ))
520
- tm .assert_numpy_array_equal (result , expected )
521
-
522
509
@pytest .mark .parametrize (
523
510
"data, uniques, dtype" ,
524
511
[
@@ -545,3 +532,16 @@ def test_unique_preserve_dtype(self, data, uniques, dtype):
545
532
expected = np .array (uniques , dtype = dtype )
546
533
547
534
tm .assert_numpy_array_equal (result , expected )
535
+
536
+ @pytest .mark .parametrize (
537
+ "data" ,
538
+ [
539
+ pd .period_range ("2000" , periods = 4 ),
540
+ pd .IntervalIndex .from_breaks ([1 , 2 , 3 , 4 ]),
541
+ ],
542
+ )
543
+ def test_values_compatibility (self , data ):
544
+ # https://github.com/pandas-dev/pandas/issues/23995
545
+ result = pd .Series (data ).values
546
+ expected = np .array (data .astype (object ))
547
+ tm .assert_numpy_array_equal (result , expected )
0 commit comments