From 10d91a0f5cfcbc53dc0fcae91bf65cfde1aed3ef Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Thu, 29 Aug 2024 13:22:40 +0200 Subject: [PATCH] Remove async tests --- tests/test_cursor_async_io.py | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/tests/test_cursor_async_io.py b/tests/test_cursor_async_io.py index 9d6cebaf5..e1957a9b2 100644 --- a/tests/test_cursor_async_io.py +++ b/tests/test_cursor_async_io.py @@ -1,15 +1,18 @@ -from helpers import for_one_database, open_cursor -from query_fixture import query_fixture +import pytest +from helpers import for_one_database # , open_cursor + +# from query_fixture import query_fixture @for_one_database def test_many_batches_with_async_io(dsn, configuration): - with open_cursor(configuration, use_async_io=True) as cursor: - with query_fixture(cursor, configuration, "INSERT INTEGER") as table_name: - # insert 2^16 rows - cursor.execute(f"INSERT INTO {table_name} VALUES (1)") - for _ in range(16): - cursor.execute(f"INSERT INTO {table_name} SELECT * FROM {table_name}") - - cursor.execute(f"SELECT * FROM {table_name}") - assert sum(1 for _ in cursor) == 2**16 + pytest.skip("async_io will be removed in future") + # with open_cursor(configuration, use_async_io=True) as cursor: + # with query_fixture(cursor, configuration, "INSERT INTEGER") as table_name: + # # insert 2^16 rows + # cursor.execute(f"INSERT INTO {table_name} VALUES (1)") + # for _ in range(16): + # cursor.execute(f"INSERT INTO {table_name} SELECT * FROM {table_name}") + + # cursor.execute(f"SELECT * FROM {table_name}") + # assert sum(1 for _ in cursor) == 2**16