From 343ced0c04ac759a716f34d9573c75eeccae6593 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Tue, 17 Dec 2024 15:59:27 -0800 Subject: [PATCH] fix intersect test --- tests/dataframe/test_intersect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dataframe/test_intersect.py b/tests/dataframe/test_intersect.py index 24330ec84e..1b7895b7e4 100644 --- a/tests/dataframe/test_intersect.py +++ b/tests/dataframe/test_intersect.py @@ -7,14 +7,14 @@ def test_simple_intersect(make_df): df1 = make_df({"foo": [1, 2, 3]}) df2 = make_df({"bar": [2, 3, 4]}) - result = df1.intersect(df2) + result = df1.intersect(df2).sort(by="foo") assert result.to_pydict() == {"foo": [2, 3]} def test_intersect_with_duplicate(make_df): df1 = make_df({"foo": [1, 2, 2, 3]}) df2 = make_df({"bar": [2, 3, 3]}) - result = df1.intersect(df2) + result = df1.intersect(df2).sort(by="foo") assert result.to_pydict() == {"foo": [2, 3]}