Skip to content

Commit 98a52c7

Browse files
committed
Fix pytest 9 error (elastic#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
1 parent 3a9de29 commit 98a52c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test_elasticsearch/test_async/test_server/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
import pytest
1918
import pytest_asyncio
2019

2120
import elasticsearch
@@ -43,7 +42,7 @@ async def async_client_factory(elasticsearch_url):
4342
await client.close()
4443

4544

46-
@pytest.fixture(scope="function")
45+
@pytest_asyncio.fixture(scope="function")
4746
def async_client(async_client_factory):
4847
try:
4948
yield async_client_factory

0 commit comments

Comments
 (0)