Skip to content

Commit 73f913f

Browse files
authored
[9.1] Fix pytest 9 error (#3152) (#3154)
* Fix pytest 9 error (#3152) * Fix pytest 9 error * Use explicit pytest_asyncio fixture * Revert "Fix pytest 9 error" This reverts commit 019e747. * Fix lint * Fix lint better * Add back type ignore (cherry picked from commit 3a15e1b) # Conflicts: # test_elasticsearch/test_async/test_server/conftest.py * Add missing import
1 parent f9785b6 commit 73f913f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_elasticsearch/test_async/test_server/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def async_client_factory(elasticsearch_url):
4343
await client.close()
4444

4545

46-
@pytest.fixture(scope="function")
46+
@pytest_asyncio.fixture(scope="function")
4747
def async_client(async_client_factory):
4848
try:
4949
yield async_client_factory

0 commit comments

Comments
 (0)