Skip to content

Commit c1690df

Browse files
committed
Filter out more pandas warnings
1 parent 8254b49 commit c1690df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

graphdatascience/tests/integration/test_graph_ops.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,13 @@ def test_graph_relationships_stream_without_arrow(gds_without_arrow: GraphDataSc
746746
"MATCH (n)-[r]->(m) RETURN id(n) AS src_id, id(m) AS trg_id, type(r) AS rel_type"
747747
)
748748

749+
# Pandas 2.2.0 deprecated an API used by the following assertion (in the underlying impl of pandas)
750+
warnings.filterwarnings(
751+
"ignore",
752+
category=DeprecationWarning,
753+
message=r"Passing a BlockManager to DataFrame is deprecated",
754+
)
755+
749756
assert result.shape[0] == expected.shape[0]
750757
for _, row in expected.iterrows():
751758
assert (result == np.array(row)).all(1).any()

0 commit comments

Comments
 (0)