@@ -1384,13 +1384,23 @@ def assert_equal(left, right, **kwargs) -> None:
13841384 __tracebackhide__ = True
13851385
13861386 if isinstance (left , Index ):
1387- assert_index_equal (left , right , ** kwargs )
1387+ exact = kwargs .pop ("exact" , True )
1388+ assert_index_equal (left , right , exact = exact , ** kwargs )
13881389 if isinstance (left , (DatetimeIndex , TimedeltaIndex )):
13891390 assert left .freq == right .freq , (left .freq , right .freq )
13901391 elif isinstance (left , Series ):
1391- assert_series_equal (left , right , ** kwargs )
1392+ check_index_type = kwargs .pop ("check_index_type" , True )
1393+ assert_series_equal (left , right , check_index_type = check_index_type , ** kwargs )
13921394 elif isinstance (left , DataFrame ):
1393- assert_frame_equal (left , right , ** kwargs )
1395+ check_index_type = kwargs .pop ("check_index_type" , True )
1396+ check_column_type = kwargs .pop ("check_column_type" , True )
1397+ assert_frame_equal (
1398+ left ,
1399+ right ,
1400+ check_index_type = check_index_type ,
1401+ check_column_type = check_column_type ,
1402+ ** kwargs ,
1403+ )
13941404 elif isinstance (left , IntervalArray ):
13951405 assert_interval_array_equal (left , right , ** kwargs )
13961406 elif isinstance (left , PeriodArray ):
0 commit comments