From 49d9cb751c7c30546fc86d11f8168d7aa007edae Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 29 Mar 2023 16:50:37 +0300 Subject: Version 4.4.4 (#2671) * Fixing cancelled async futures (#2666) Co-authored-by: James R T Co-authored-by: dvora-h * Version 4.4.4 * fix tests * linters * fixing the test for the 4.4 state * remove superfluous try-except --------- Co-authored-by: Chayim Co-authored-by: James R T Co-authored-by: Chayim I. Kirshen --- tests/test_asyncio/test_connection.py | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'tests/test_asyncio/test_connection.py') diff --git a/tests/test_asyncio/test_connection.py b/tests/test_asyncio/test_connection.py index ccd6cdb..bf59dbe 100644 --- a/tests/test_asyncio/test_connection.py +++ b/tests/test_asyncio/test_connection.py @@ -41,28 +41,6 @@ async def test_invalid_response(create_redis): await r.connection.disconnect() -@pytest.mark.onlynoncluster -async def test_asynckills(create_redis): - - for b in [True, False]: - r = await create_redis(single_connection_client=b) - - await r.set("foo", "foo") - await r.set("bar", "bar") - - t = asyncio.create_task(r.get("foo")) - await asyncio.sleep(1) - t.cancel() - try: - await t - except asyncio.CancelledError: - pytest.fail("connection left open with unread response") - - assert await r.get("bar") == b"bar" - assert await r.ping() - assert await r.get("foo") == b"foo" - - @skip_if_server_version_lt("4.0.0") @pytest.mark.redismod @pytest.mark.onlynoncluster -- cgit v1.2.1