lexiforest / curl_cffi

Python binding for curl-impersonate fork via cffi. A http client that can impersonate browser tls/ja3/http2 fingerprints.
https://curl-cffi.readthedocs.io/
MIT License
2.54k stars 269 forks source link

[BUG] Problem with checks #246

Closed deedy5 closed 9 months ago

deedy5 commented 9 months ago

Describe the bug

https://github.com/yifeikong/curl_cffi/pull/245 These checks cannot be completed and are canceled after 6 hours.

Build, test and release / Build bdist wheels and test (ubuntu-22.04) Build, test and release / Build bdist wheels and test (macos-12) Build, test and release / Build bdist wheels and test (macos-14) Build, test and release / Build bdist wheels and test (windows-2019)

deedy5 commented 9 months ago
FAILED tests/unittest/test_async_session.py::test_get - RuntimeError: This event loop is already running
FAILED tests/unittest/test_async_session.py::test_post_dict - RuntimeError: This event loop is already running
FAILED tests/unittest/test_async_session.py::test_post_str - RuntimeError: This event loop is already running
FAILED tests/unittest/test_async_session.py::test_post_json - RuntimeError: This event loop is already running
FAILED tests/unittest/test_async_session.py::test_put_json - RuntimeError: This event loop is already running
FAILED tests/unittest/test_async_session.py::test_delete - RuntimeError: This event loop is already running
FAILED tests/unittest/test_async_session.py::test_options - RuntimeError: This event loop is already running
FAILED tests/unittest/test_async_session.py::test_params - RuntimeError: This event loop is already running
...

Problem because pytest-asyncio creates a new event loop for each test case by default. Fixed in https://github.com/yifeikong/curl_cffi/pull/245