@@ -352,7 +352,7 @@ def test_constructor_dict(self):
352
352
353
353
# with dict of empty list and Series
354
354
frame = DataFrame ({"A" : [], "B" : []}, columns = ["A" , "B" ])
355
- tm .assert_index_equal (frame .index , Index ([], dtype = np . int64 ) )
355
+ tm .assert_index_equal (frame .index , RangeIndex ( 0 ), exact = True )
356
356
357
357
# GH 14381
358
358
# Dict with None value
@@ -802,14 +802,14 @@ def _check_basic_constructor(self, empty):
802
802
803
803
# automatic labeling
804
804
frame = DataFrame (mat )
805
- tm .assert_index_equal (frame .index , pd . Int64Index (range (2 )))
806
- tm .assert_index_equal (frame .columns , pd . Int64Index (range (3 )))
805
+ tm .assert_index_equal (frame .index , Index (range (2 )), exact = True )
806
+ tm .assert_index_equal (frame .columns , Index (range (3 )), exact = True )
807
807
808
808
frame = DataFrame (mat , index = [1 , 2 ])
809
- tm .assert_index_equal (frame .columns , pd . Int64Index (range (3 )))
809
+ tm .assert_index_equal (frame .columns , Index (range (3 )), exact = True )
810
810
811
811
frame = DataFrame (mat , columns = ["A" , "B" , "C" ])
812
- tm .assert_index_equal (frame .index , pd . Int64Index (range (2 )))
812
+ tm .assert_index_equal (frame .index , Index (range (2 )), exact = True )
813
813
814
814
# 0-length axis
815
815
frame = DataFrame (empty ((0 , 3 )))
0 commit comments