1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
Description: Ignore int64 vs int_nativesize mismatches
Introduced by pandas 2.x
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1063435
Forwarded: https://github.com/geopandas/geopandas/issues/3189
--- a/geopandas/tests/test_geom_methods.py
+++ b/geopandas/tests/test_geom_methods.py
@@ -1492,7 +1492,7 @@ class TestGeomMethods:
names=[index_name, None],
)
expected_df = expected_df.set_index(expected_index)
- assert_frame_equal(test_df, expected_df)
+ assert_frame_equal(test_df, expected_df, check_index_type=False)
@pytest.mark.parametrize("index_name", [None, "test"])
def test_explode_geodataframe_level_1(self, index_name):
@@ -1511,7 +1511,7 @@ class TestGeomMethods:
names=[index_name, None],
)
expected_df = expected_df.set_index(expected_index)
- assert_frame_equal(test_df, expected_df)
+ assert_frame_equal(test_df, expected_df, check_index_type=False)
@pytest.mark.parametrize("index_name", [None, "test"])
def test_explode_geodataframe_no_multiindex(self, index_name):
@@ -1617,7 +1617,7 @@ class TestGeomMethods:
names=["first", "second", None],
)
expected_df = expected_df.set_index(expected_index)
- assert_frame_equal(test_df, expected_df)
+ assert_frame_equal(test_df, expected_df, check_index_type=False)
@pytest.mark.parametrize("outer_index", [1, (1, 2), "1"])
def test_explode_pandas_multi_index_false(self, outer_index):
@@ -1718,7 +1718,7 @@ class TestGeomMethods:
geometry=expected_geometry,
index=expected_index,
)
- assert_geodataframe_equal(test_df, expected_df)
+ assert_geodataframe_equal(test_df, expected_df, check_index_type=False)
def test_explode_order_no_multi(self):
df = GeoDataFrame(
@@ -1736,7 +1736,7 @@ class TestGeomMethods:
geometry=[Point(0, x) for x in range(3)],
index=expected_index,
)
- assert_geodataframe_equal(test_df, expected_df)
+ assert_geodataframe_equal(test_df, expected_df, check_index_type=False)
def test_explode_order_mixed(self):
df = GeoDataFrame(
@@ -1764,7 +1764,7 @@ class TestGeomMethods:
geometry=expected_geometry,
index=expected_index,
)
- assert_geodataframe_equal(test_df, expected_df)
+ assert_geodataframe_equal(test_df, expected_df, check_index_type=False)
def test_explode_duplicated_index(self):
df = GeoDataFrame(
@@ -1792,7 +1792,7 @@ class TestGeomMethods:
geometry=expected_geometry,
index=expected_index,
)
- assert_geodataframe_equal(test_df, expected_df)
+ assert_geodataframe_equal(test_df, expected_df, check_index_type=False)
@pytest.mark.parametrize("geom_col", ["geom", "geometry"])
def test_explode_geometry_name(self, geom_col):
@@ -1857,7 +1857,7 @@ class TestGeomMethods:
]
),
)
- assert_frame_equal(self.g11.get_coordinates(index_parts=True), expected)
+ assert_frame_equal(self.g11.get_coordinates(index_parts=True), expected, check_index_type=False)
def test_minimum_bounding_radius(self):
mbr_geoms = self.g1.minimum_bounding_radius()
|