Skip to content

Commit 522f842

Browse files
Fix mypy unsupported operand types error.
1 parent eb6e9f0 commit 522f842

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pandas/tests/io/test_sql.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,8 @@ def sqlite_buildin_types(sqlite_buildin, types_data):
10611061
sqlalchemy_connectable_types + ["sqlite_buildin_types"] + adbc_connectable_types
10621062
)
10631063

1064+
temporary_connectable = sqlalchemy_connectable_default_pool + adbc_connectable
1065+
10641066

10651067
@pytest.mark.parametrize("conn", all_connectable)
10661068
def test_dataframe_to_sql(conn, test_frame1, request):
@@ -4462,7 +4464,7 @@ def test_exists_temporary_table(conn, test_frame1, request):
44624464
assert True if table.exists() else False
44634465

44644466

4465-
@pytest.mark.parametrize("conn", sqlalchemy_connectable_default_pool + adbc_connectable)
4467+
@pytest.mark.parametrize("conn", temporary_connectable)
44664468
def test_to_sql_temporary_table_replace(conn, test_frame1, request):
44674469
conn = request.getfixturevalue(conn)
44684470

@@ -4487,7 +4489,7 @@ def test_to_sql_temporary_table_replace(conn, test_frame1, request):
44874489
assert_frame_equal(test_frame1, df_test)
44884490

44894491

4490-
@pytest.mark.parametrize("conn", sqlalchemy_connectable_default_pool + adbc_connectable)
4492+
@pytest.mark.parametrize("conn", temporary_connectable)
44914493
def test_to_sql_temporary_table_fail(conn, test_frame1, request):
44924494
conn = request.getfixturevalue(conn)
44934495

@@ -4509,7 +4511,7 @@ def test_to_sql_temporary_table_fail(conn, test_frame1, request):
45094511
)
45104512

45114513

4512-
@pytest.mark.parametrize("conn", sqlalchemy_connectable_default_pool + adbc_connectable)
4514+
@pytest.mark.parametrize("conn", temporary_connectable)
45134515
def test_to_sql_temporary_table_append(conn, test_frame1, request):
45144516
conn = request.getfixturevalue(conn)
45154517

0 commit comments

Comments
 (0)