Skip to content

Commit c8506a5

Browse files
committed
Adjust test
1 parent 9a9030c commit c8506a5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pandas/tests/io/test_sql.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,11 +1678,9 @@ def test_api_roundtrip(conn, request, test_frame1):
16781678

16791679
# HACK!
16801680
if "adbc" in conn_name:
1681-
result = result.rename(columns={"__index_level_0__": "level_0"})
1682-
result.index = test_frame1.index
1683-
result.set_index("level_0", inplace=True)
1684-
result.index.astype(int)
1685-
result.index.name = None
1681+
result = result.drop(columns="__index_level_0__")
1682+
else:
1683+
result = result.drop(columns="level_0")
16861684
tm.assert_frame_equal(result, test_frame1)
16871685

16881686

0 commit comments

Comments
 (0)