Skip to content

Commit 7666ea7

Browse files
committed
Updates test_table in reverting from pandas 1.5
1 parent d893177 commit 7666ea7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/unit/test_table.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,11 @@ def test_to_geodataframe(self):
21702170
df = row_iterator.to_geodataframe(create_bqstorage_client=False)
21712171
self.assertIsInstance(df, geopandas.GeoDataFrame)
21722172
self.assertEqual(len(df), 0) # verify the number of rows
2173-
assert not hasattr(df, "crs") # used with Python >= 3.9
2173+
2174+
if geopandas.__version__ == "0.9.0":
2175+
assert hasattr(df, "crs")
2176+
else:
2177+
assert not hasattr(df, "crs")
21742178

21752179

21762180
class TestRowIterator(unittest.TestCase):

0 commit comments

Comments
 (0)