File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 55import pandas as pd
66from pandas import DataFrame
77import pandas ._testing as tm
8+ from pandas .testing import assert_frame_equal
89
910
1011@pytest .fixture (params = [True , False ])
@@ -399,6 +400,7 @@ def test_assert_frame_equal_set_mismatch():
399400 tm .assert_frame_equal (df1 , df2 )
400401
401402
403+
402404def test_datetimelike_compat_deprecated ():
403405 # GH#55638
404406 df = DataFrame ({"a" : [1 ]})
@@ -413,3 +415,11 @@ def test_datetimelike_compat_deprecated():
413415 tm .assert_series_equal (df ["a" ], df ["a" ], check_datetimelike_compat = True )
414416 with tm .assert_produces_warning (Pandas4Warning , match = msg ):
415417 tm .assert_series_equal (df ["a" ], df ["a" ], check_datetimelike_compat = False )
418+
419+
420+ def test_assert_frame_equal_na_object_vs_int32_check_dtype_false ():
421+
422+ df1 = pd .DataFrame ({"x" : pd .Series ([pd .NA ], dtype = "Int32" )})
423+ df2 = pd .DataFrame ({"x" : pd .Series ([pd .NA ], dtype = "object" )})
424+ assert_frame_equal (df1 , df2 , check_dtype = False )
425+
You can’t perform that action at this time.
0 commit comments