@@ -506,33 +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, uniques, dtype" ,
511
- [
512
- ([1 , 2 , 2 ], [1 , 2 ], "int8" ),
513
- ([1 , 2 , 2 ], [1 , 2 ], "int16" ),
514
- ([1 , 2 , 2 ], [1 , 2 ], "int32" ),
515
- ([1 , 2 , 2 ], [1 , 2 ], "int64" ),
516
- ([1 , 2 , 2 ], [1 , 2 ], "uint8" ),
517
- ([1 , 2 , 2 ], [1 , 2 ], "uint16" ),
518
- ([1 , 2 , 2 ], [1 , 2 ], "uint32" ),
519
- ([1 , 2 , 2 ], [1 , 2 ], "uint64" ),
520
- ([1 , 2 , 2 ], [1.0 , 2.0 ], "float16" ),
521
- ([1 , 2 , 2 ], [1.0 , 2.0 ], "float32" ),
522
- ([1 , 2 , 2 ], [1.0 , 2.0 ], "float64" ),
523
- ([1 , 2 , 2 ], [1.0 , 2.0 ], "complex64" ),
524
- ([1 , 2 , 2 ], [1.0 , 2.0 ], "complex128" ),
525
- ([True , True , False ], [True , False ], "bool" ),
526
- (["A" , "A" , "B" ], ["A" , "B" ], "object" ),
527
- ],
528
- )
529
- def test_unique_preserve_dtype (self , data , uniques , dtype ):
530
- # GH 15442
531
- result = Series (data , dtype = dtype ).unique ()
532
- expected = np .array (uniques , dtype = dtype )
533
-
534
- tm .assert_numpy_array_equal (result , expected )
535
-
536
509
@pytest .mark .parametrize (
537
510
"data" ,
538
511
[
0 commit comments