Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 853140 Details for
Bug 895486
dev-python/uvicorn-0.20.0 fails tests: "RuntimeError: There is no current event loop in thread 'MainThread'."
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-python:uvicorn-0.20.0:20230219-204127.log
dev-python:uvicorn-0.20.0:20230219-204127.log (text/x-log), 965.16 KB, created by
Jonathan Lovelace
on 2023-02-20 00:45:26 UTC
(
hide
)
Description:
dev-python:uvicorn-0.20.0:20230219-204127.log
Filename:
MIME Type:
Creator:
Jonathan Lovelace
Created:
2023-02-20 00:45:26 UTC
Size:
965.16 KB
patch
obsolete
> * Package: dev-python/uvicorn-0.20.0:0 > * Repository: gentoo > * Maintainer: python@gentoo.org > * Upstream: https://github.com/encode/uvicorn/issues > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_10 test userland_GNU > * FEATURES: distcc fakeroot network-sandbox preserve-libs sandbox test userpriv usersandbox > * Build system packages: > * dev-python/gpep517 : 13 > * dev-python/installer : 0.6.0 > * dev-python/hatchling : 1.12.2 > * dev-python/hatch-fancy-pypi-readme: 22.8.0 > * dev-python/hatch-vcs : 0.3.0 > * python3_10: running distutils-r1_run_phase distutils-r1_python_compile > * Building the wheel for uvicorn-0.20.0 via hatchling.build >gpep517 build-wheel --backend hatchling.build --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0-python3_10/wheel >2023-02-19 15:41:30,315 gpep517 INFO Building wheel via backend hatchling.build >2023-02-19 15:41:30,479 gpep517 INFO The backend produced /var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0-python3_10/wheel/uvicorn-0.20.0-py3-none-any.whl > * Installing uvicorn-0.20.0-py3-none-any.whl to /var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0-python3_10/install >gpep517 install-wheel --destdir=/var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0-python3_10/install --interpreter=/usr/bin/python3.10 --prefix=/usr --optimize=all /var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0-python3_10/wheel/uvicorn-0.20.0-py3-none-any.whl >2023-02-19 15:41:30,628 gpep517 INFO Installing /var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0-python3_10/wheel/uvicorn-0.20.0-py3-none-any.whl into /var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0-python3_10/install >2023-02-19 15:41:30,811 gpep517 INFO Installation complete > * python3_10: running distutils-r1_run_phase python_test >python3.10 -m pytest -vv -ra -l -Wdefault --color=no -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:tavern --deselect tests/test_config.py::test_bind_unix_socket_works_with_reload_or_workers --deselect tests/middleware/test_logging.py::test_trace_logging_on_http_protocol[httptools] --deselect tests/protocols/test_http.py::test_fragmentation --ignore tests/supervisors/test_reload.py >============================================================= test session starts ============================================================= >platform linux -- Python 3.10.9, pytest-7.2.1, pluggy-1.0.0 -- /var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0-python3_10/install/usr/bin/python3.10 >cachedir: .pytest_cache >hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0/.hypothesis/examples') >rootdir: /var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0, configfile: setup.cfg >plugins: asyncio-0.20.3, betamax-0.8.1, flaky-3.7.0, hypothesis-6.65.2, timeout-2.1.0, xdist-3.1.0, typeguard-2.13.3, pytest_param_files-0.3.4, aiohttp-1.0.4, mock-3.10.0, pkgcore-0.12.19, expect-1.1.0, shutil-1.7.0, requests-mock-1.10.0, datadir-1.4.1, virtualenv-1.7.0, pyfakefs-5.0.0, httpserver-1.0.6, xprocess-0.22.2, console-scripts-1.3.1, trio-0.8.0, httpbin-1.0.2, regressions-2.4.1, django-4.5.2, freezegun-0.4.2, subtests-0.9.0, anyio-3.6.1, services-2.2.1, forked-1.4.0, jaraco.test-5.3.0, codeblocks-0.16.1, tornasync-0.6.0.post2, rerunfailures-10.3 >asyncio: mode=strict >collecting ... collected 282 items / 3 deselected / 279 selected > >tests/test_auto_detection.py::test_loop_auto PASSED [ 1/279] >tests/test_auto_detection.py::test_http_auto PASSED [ 2/279] >tests/test_auto_detection.py::test_websocket_auto PASSED [ 3/279] >tests/test_cli.py::test_cli_print_version PASSED [ 4/279] >tests/test_cli.py::test_cli_headers PASSED [ 5/279] >tests/test_cli.py::test_cli_call_server_run PASSED [ 6/279] >tests/test_cli.py::test_cli_call_change_reload_run PASSED [ 7/279] >tests/test_cli.py::test_cli_call_multiprocess_run PASSED [ 8/279] >tests/test_cli.py::test_cli_uds[True] PASSED [ 9/279] >tests/test_cli.py::test_cli_uds[False] PASSED [ 10/279] >tests/test_cli.py::test_cli_incomplete_app_parameter PASSED [ 11/279] >tests/test_cli.py::test_cli_event_size PASSED [ 12/279] >tests/test_cli.py::test_env_variables PASSED [ 13/279] >tests/test_cli.py::test_mistmatch_env_variables PASSED [ 14/279] >tests/test_cli.py::test_app_dir PASSED [ 15/279] >tests/test_config.py::test_config_should_reload_is_set[asgi_app-False] PASSED [ 16/279] >tests/test_config.py::test_config_should_reload_is_set[tests.test_config:asgi_app-True] PASSED [ 17/279] >tests/test_config.py::test_should_warn_on_invalid_reload_configuration PASSED [ 18/279] >tests/test_config.py::test_reload_dir_is_set PASSED [ 19/279] >tests/test_config.py::test_non_existant_reload_dir_is_not_set PASSED [ 20/279] >tests/test_config.py::test_reload_subdir_removal PASSED [ 21/279] >tests/test_config.py::test_reload_included_dir_is_added_to_reload_dirs PASSED [ 22/279] >tests/test_config.py::test_reload_dir_subdirectories_are_removed PASSED [ 23/279] >tests/test_config.py::test_reload_excluded_subdirectories_are_removed PASSED [ 24/279] >tests/test_config.py::test_reload_includes_exclude_dir_patterns_are_matched PASSED [ 25/279] >tests/test_config.py::test_wsgi_app PASSED [ 26/279] >tests/test_config.py::test_proxy_headers PASSED [ 27/279] >tests/test_config.py::test_app_unimportable_module PASSED [ 28/279] >tests/test_config.py::test_app_unimportable_other PASSED [ 29/279] >tests/test_config.py::test_app_factory PASSED [ 30/279] >tests/test_config.py::test_concrete_http_class PASSED [ 31/279] >tests/test_config.py::test_socket_bind PASSED [ 32/279] >tests/test_config.py::test_ssl_config PASSED [ 33/279] >tests/test_config.py::test_ssl_config_combined PASSED [ 34/279] >tests/test_config.py::test_asgi_version[asgi_app-3.0] PASSED [ 35/279] >tests/test_config.py::test_asgi_version[asgi2_app-2.0] PASSED [ 36/279] >tests/test_config.py::test_log_config_default[use_colors_not_provided] PASSED [ 37/279] >tests/test_config.py::test_log_config_default[use_colors_invalid_value] PASSED [ 38/279] >tests/test_config.py::test_log_config_default[use_colors_enabled] PASSED [ 39/279] >tests/test_config.py::test_log_config_default[use_colors_disabled] PASSED [ 40/279] >tests/test_config.py::test_log_config_json PASSED [ 41/279] >tests/test_config.py::test_log_config_yaml[log_config.yml] PASSED [ 42/279] >tests/test_config.py::test_log_config_yaml[log_config.yaml] PASSED [ 43/279] >tests/test_config.py::test_log_config_file PASSED [ 44/279] >tests/test_config.py::test_env_file[0-127.0.0.1] PASSED [ 45/279] >tests/test_config.py::test_env_file[0-127.0.0.2] PASSED [ 46/279] >tests/test_config.py::test_env_file[1-127.0.0.1] PASSED [ 47/279] >tests/test_config.py::test_env_file[1-127.0.0.2] PASSED [ 48/279] >tests/test_config.py::test_config_access_log[access log enabled should have single handler] PASSED [ 49/279] >tests/test_config.py::test_config_access_log[access log disabled shouldn't have handlers] PASSED [ 50/279] >tests/test_config.py::test_config_log_level[5] PASSED [ 51/279] >tests/test_config.py::test_config_log_level[10] PASSED [ 52/279] >tests/test_config.py::test_config_log_level[20] PASSED [ 53/279] >tests/test_config.py::test_config_log_level[30] PASSED [ 54/279] >tests/test_config.py::test_config_log_level[40] PASSED [ 55/279] >tests/test_config.py::test_config_log_level[50] PASSED [ 56/279] >tests/test_config.py::test_ws_max_size PASSED [ 57/279] >tests/test_config.py::test_bind_fd_works_with_reload_or_workers[--reload=True --workers=1] PASSED [ 58/279] >tests/test_config.py::test_bind_fd_works_with_reload_or_workers[--reload=False --workers=2] PASSED [ 59/279] >tests/test_config.py::test_config_use_subprocess[--reload=True --workers=1] PASSED [ 60/279] >tests/test_config.py::test_config_use_subprocess[--reload=False --workers=2] PASSED [ 61/279] >tests/test_config.py::test_config_use_subprocess[--reload=False --workers=1] PASSED [ 62/279] >tests/test_config.py::test_warn_when_using_reload_and_workers PASSED [ 63/279] >tests/test_default_headers.py::test_default_default_headers FAILED [ 64/279] >tests/test_default_headers.py::test_override_server_header FAILED [ 65/279] >tests/test_default_headers.py::test_disable_default_server_header FAILED [ 66/279] >tests/test_default_headers.py::test_override_server_header_multiple_times FAILED [ 67/279] >tests/test_default_headers.py::test_add_additional_header FAILED [ 68/279] >tests/test_default_headers.py::test_disable_default_date_header FAILED [ 69/279] >tests/test_lifespan.py::test_lifespan_on PASSED [ 70/279] >tests/test_lifespan.py::test_lifespan_off PASSED [ 71/279] >tests/test_lifespan.py::test_lifespan_auto PASSED [ 72/279] >tests/test_lifespan.py::test_lifespan_auto_with_error PASSED [ 73/279] >tests/test_lifespan.py::test_lifespan_on_with_error PASSED [ 74/279] >tests/test_lifespan.py::test_lifespan_with_failed_startup[True-auto] PASSED [ 75/279] >tests/test_lifespan.py::test_lifespan_with_failed_startup[True-on] PASSED [ 76/279] >tests/test_lifespan.py::test_lifespan_with_failed_startup[False-auto] PASSED [ 77/279] >tests/test_lifespan.py::test_lifespan_with_failed_startup[False-on] PASSED [ 78/279] >tests/test_lifespan.py::test_lifespan_scope_asgi3app PASSED [ 79/279] >tests/test_lifespan.py::test_lifespan_scope_asgi2app PASSED [ 80/279] >tests/test_lifespan.py::test_lifespan_with_failed_shutdown[True-auto] PASSED [ 81/279] >tests/test_lifespan.py::test_lifespan_with_failed_shutdown[True-on] PASSED [ 82/279] >tests/test_lifespan.py::test_lifespan_with_failed_shutdown[False-auto] PASSED [ 83/279] >tests/test_lifespan.py::test_lifespan_with_failed_shutdown[False-on] PASSED [ 84/279] >tests/test_main.py::test_return_close_header FAILED [ 85/279] >tests/test_main.py::test_run[default] FAILED [ 86/279] >tests/test_main.py::test_run[hostname] FAILED [ 87/279] >tests/test_main.py::test_run[ipv6] FAILED [ 88/279] >tests/test_main.py::test_run_multiprocess FAILED [ 89/279] >tests/test_main.py::test_run_reload FAILED [ 90/279] >tests/test_main.py::test_run_invalid_app_config_combination PASSED [ 91/279] >tests/test_main.py::test_run_startup_failure PASSED [ 92/279] >tests/test_main.py::test_run_match_config_params PASSED [ 93/279] >tests/test_ssl.py::test_run FAILED [ 94/279] >tests/test_ssl.py::test_run_chain FAILED [ 95/279] >tests/test_ssl.py::test_run_chain_only FAILED [ 96/279] >tests/test_ssl.py::test_run_password FAILED [ 97/279] >tests/test_subprocess.py::test_get_subprocess PASSED [ 98/279] >tests/test_subprocess.py::test_subprocess_started PASSED [ 99/279] >tests/importer/test_importer.py::test_invalid_format PASSED [100/279] >tests/importer/test_importer.py::test_invalid_module PASSED [101/279] >tests/importer/test_importer.py::test_invalid_attr PASSED [102/279] >tests/importer/test_importer.py::test_internal_import_error PASSED [103/279] >tests/importer/test_importer.py::test_valid_import PASSED [104/279] >tests/importer/test_importer.py::test_no_import_needed PASSED [105/279] >tests/middleware/test_logging.py::test_trace_logging FAILED [106/279] >tests/middleware/test_logging.py::test_trace_logging_on_http_protocol[H11Protocol] FAILED [107/279] >tests/middleware/test_logging.py::test_trace_logging_on_ws_protocol[websockets] FAILED [108/279] >tests/middleware/test_logging.py::test_trace_logging_on_ws_protocol[wsproto] FAILED [109/279] >tests/middleware/test_logging.py::test_access_logging[True] FAILED [110/279] >tests/middleware/test_logging.py::test_access_logging[False] FAILED [111/279] >tests/middleware/test_logging.py::test_access_logging[None] FAILED [112/279] >tests/middleware/test_logging.py::test_default_logging[True] FAILED [113/279] >tests/middleware/test_logging.py::test_default_logging[False] FAILED [114/279] >tests/middleware/test_logging.py::test_running_log_using_uds FAILED [115/279] >tests/middleware/test_logging.py::test_running_log_using_fd FAILED [116/279] >tests/middleware/test_logging.py::test_unknown_status_code FAILED [117/279] >tests/middleware/test_logging.py::test_server_start_with_port_zero FAILED [118/279] >tests/middleware/test_message_logger.py::test_message_logger FAILED [119/279] >tests/middleware/test_message_logger.py::test_message_logger_exc FAILED [120/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[*-Remote: https://1.2.3.4:0] FAILED [121/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[127.0.0.1-Remote: https://1.2.3.4:0] FAILED [122/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[trusted_hosts2-Remote: https://1.2.3.4:0] FAILED [123/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[trusted_hosts3-Remote: https://1.2.3.4:0] FAILED [124/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[127.0.0.1, 10.0.0.1-Remote: https://1.2.3.4:0] FAILED [125/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[192.168.0.1-Remote: http://127.0.0.1:123] FAILED [126/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_multiple_proxies[*-Remote: https://1.2.3.4:0] FAILED [127/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_multiple_proxies[trusted_hosts1-Remote: https://1.2.3.4:0] FAILED [128/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_multiple_proxies[trusted_hosts2-Remote: https://1.2.3.4:0] FAILED [129/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_multiple_proxies[trusted_hosts3-Remote: https://10.0.2.1:0] FAILED [130/279] >tests/middleware/test_proxy_headers.py::test_proxy_headers_invalid_x_forwarded_for FAILED [131/279] >tests/middleware/test_wsgi.py::test_wsgi_get FAILED [132/279] >tests/middleware/test_wsgi.py::test_wsgi_post FAILED [133/279] >tests/middleware/test_wsgi.py::test_wsgi_put_more_body FAILED [134/279] >tests/middleware/test_wsgi.py::test_wsgi_exception FAILED [135/279] >tests/middleware/test_wsgi.py::test_wsgi_exc_info FAILED [136/279] >tests/middleware/test_wsgi.py::test_build_environ_encoding PASSED [137/279] >tests/protocols/test_http.py::test_get_request[H11Protocol] FAILED [138/279] >tests/protocols/test_http.py::test_request_logging[H11Protocol-/] FAILED [139/279] >tests/protocols/test_http.py::test_request_logging[H11Protocol-/?foo] FAILED [140/279] >tests/protocols/test_http.py::test_request_logging[H11Protocol-/?foo=bar] FAILED [141/279] >tests/protocols/test_http.py::test_request_logging[H11Protocol-/?foo=bar&baz=1] FAILED [142/279] >tests/protocols/test_http.py::test_head_request[H11Protocol] FAILED [143/279] >tests/protocols/test_http.py::test_post_request[H11Protocol] FAILED [144/279] >tests/protocols/test_http.py::test_keepalive[H11Protocol] FAILED [145/279] >tests/protocols/test_http.py::test_keepalive_timeout[H11Protocol] FAILED [146/279] >tests/protocols/test_http.py::test_close[H11Protocol] FAILED [147/279] >tests/protocols/test_http.py::test_chunked_encoding[H11Protocol] FAILED [148/279] >tests/protocols/test_http.py::test_chunked_encoding_empty_body[H11Protocol] FAILED [149/279] >tests/protocols/test_http.py::test_chunked_encoding_head_request[H11Protocol] FAILED [150/279] >tests/protocols/test_http.py::test_pipelined_requests[H11Protocol] FAILED [151/279] >tests/protocols/test_http.py::test_undersized_request[H11Protocol] FAILED [152/279] >tests/protocols/test_http.py::test_oversized_request[H11Protocol] FAILED [153/279] >tests/protocols/test_http.py::test_large_post_request[H11Protocol] FAILED [154/279] >tests/protocols/test_http.py::test_invalid_http[H11Protocol] FAILED [155/279] >tests/protocols/test_http.py::test_app_exception[H11Protocol] FAILED [156/279] >tests/protocols/test_http.py::test_exception_during_response[H11Protocol] FAILED [157/279] >tests/protocols/test_http.py::test_no_response_returned[H11Protocol] FAILED [158/279] >tests/protocols/test_http.py::test_partial_response_returned[H11Protocol] FAILED [159/279] >tests/protocols/test_http.py::test_duplicate_start_message[H11Protocol] FAILED [160/279] >tests/protocols/test_http.py::test_missing_start_message[H11Protocol] FAILED [161/279] >tests/protocols/test_http.py::test_message_after_body_complete[H11Protocol] FAILED [162/279] >tests/protocols/test_http.py::test_value_returned[H11Protocol] FAILED [163/279] >tests/protocols/test_http.py::test_early_disconnect[H11Protocol] FAILED [164/279] >tests/protocols/test_http.py::test_early_response[H11Protocol] FAILED [165/279] >tests/protocols/test_http.py::test_read_after_response[H11Protocol] FAILED [166/279] >tests/protocols/test_http.py::test_http10_request[H11Protocol] FAILED [167/279] >tests/protocols/test_http.py::test_root_path[H11Protocol] FAILED [168/279] >tests/protocols/test_http.py::test_raw_path[H11Protocol] FAILED [169/279] >tests/protocols/test_http.py::test_max_concurrency[H11Protocol] FAILED [170/279] >tests/protocols/test_http.py::test_shutdown_during_request[H11Protocol] FAILED [171/279] >tests/protocols/test_http.py::test_shutdown_during_idle[H11Protocol] FAILED [172/279] >tests/protocols/test_http.py::test_100_continue_sent_when_body_consumed[H11Protocol] FAILED [173/279] >tests/protocols/test_http.py::test_100_continue_not_sent_when_body_not_consumed[H11Protocol] FAILED [174/279] >tests/protocols/test_http.py::test_supported_upgrade_request[H11Protocol] FAILED [175/279] >tests/protocols/test_http.py::test_unsupported_ws_upgrade_request[H11Protocol] FAILED [176/279] >tests/protocols/test_http.py::test_unsupported_ws_upgrade_request_warn_on_auto[H11Protocol] FAILED [177/279] >tests/protocols/test_http.py::test_http2_upgrade_request[auto-H11Protocol] FAILED [178/279] >tests/protocols/test_http.py::test_http2_upgrade_request[none-H11Protocol] FAILED [179/279] >tests/protocols/test_http.py::test_http2_upgrade_request[websockets-H11Protocol] FAILED [180/279] >tests/protocols/test_http.py::test_http2_upgrade_request[wsproto-H11Protocol] FAILED [181/279] >tests/protocols/test_http.py::test_scopes[H11Protocol-asgi3app-expected_scopes0] FAILED [182/279] >tests/protocols/test_http.py::test_scopes[H11Protocol-asgi2app-expected_scopes1] FAILED [183/279] >tests/protocols/test_http.py::test_invalid_http_request[H11Protocol-invalid-method] FAILED [184/279] >tests/protocols/test_http.py::test_invalid_http_request[H11Protocol-invalid-path] FAILED [185/279] >tests/protocols/test_http.py::test_invalid_http_request[H11Protocol-invalid-http-version] FAILED [186/279] >tests/protocols/test_http.py::test_huge_headers_h11protocol_failure FAILED [187/279] >tests/protocols/test_http.py::test_huge_headers_httptools_will_pass SKIPPED (httptools is not installed) [188/279] >tests/protocols/test_http.py::test_huge_headers_h11protocol_failure_with_setting FAILED [189/279] >tests/protocols/test_http.py::test_huge_headers_httptools SKIPPED (httptools is not installed) [190/279] >tests/protocols/test_http.py::test_huge_headers_h11_max_incomplete FAILED [191/279] >tests/protocols/test_utils.py::test_get_local_addr_with_socket PASSED [192/279] >tests/protocols/test_utils.py::test_get_remote_addr_with_socket PASSED [193/279] >tests/protocols/test_utils.py::test_get_local_addr PASSED [194/279] >tests/protocols/test_utils.py::test_get_remote_addr PASSED [195/279] >tests/protocols/test_utils.py::test_get_client_addr[ip:port client] PASSED [196/279] >tests/protocols/test_utils.py::test_get_client_addr[None client] PASSED [197/279] >tests/protocols/test_websocket.py::test_invalid_upgrade[H11Protocol-WSProtocol] FAILED [198/279] >tests/protocols/test_websocket.py::test_invalid_upgrade[H11Protocol-WebSocketProtocol] FAILED [199/279] >tests/protocols/test_websocket.py::test_accept_connection[H11Protocol-WSProtocol] FAILED [200/279] >tests/protocols/test_websocket.py::test_accept_connection[H11Protocol-WebSocketProtocol] FAILED [201/279] >tests/protocols/test_websocket.py::test_supports_permessage_deflate_extension[H11Protocol-WSProtocol] FAILED [202/279] >tests/protocols/test_websocket.py::test_supports_permessage_deflate_extension[H11Protocol-WebSocketProtocol] FAILED [203/279] >tests/protocols/test_websocket.py::test_can_disable_permessage_deflate_extension[H11Protocol-WSProtocol] FAILED [204/279] >tests/protocols/test_websocket.py::test_can_disable_permessage_deflate_extension[H11Protocol-WebSocketProtocol] FAILED [205/279] >tests/protocols/test_websocket.py::test_close_connection[H11Protocol-WSProtocol] FAILED [206/279] >tests/protocols/test_websocket.py::test_close_connection[H11Protocol-WebSocketProtocol] FAILED [207/279] >tests/protocols/test_websocket.py::test_headers[H11Protocol-WSProtocol] FAILED [208/279] >tests/protocols/test_websocket.py::test_headers[H11Protocol-WebSocketProtocol] FAILED [209/279] >tests/protocols/test_websocket.py::test_extra_headers[H11Protocol-WSProtocol] FAILED [210/279] >tests/protocols/test_websocket.py::test_extra_headers[H11Protocol-WebSocketProtocol] FAILED [211/279] >tests/protocols/test_websocket.py::test_path_and_raw_path[H11Protocol-WSProtocol] FAILED [212/279] >tests/protocols/test_websocket.py::test_path_and_raw_path[H11Protocol-WebSocketProtocol] FAILED [213/279] >tests/protocols/test_websocket.py::test_send_text_data_to_client[H11Protocol-WSProtocol] FAILED [214/279] >tests/protocols/test_websocket.py::test_send_text_data_to_client[H11Protocol-WebSocketProtocol] FAILED [215/279] >tests/protocols/test_websocket.py::test_send_binary_data_to_client[H11Protocol-WSProtocol] FAILED [216/279] >tests/protocols/test_websocket.py::test_send_binary_data_to_client[H11Protocol-WebSocketProtocol] FAILED [217/279] >tests/protocols/test_websocket.py::test_send_and_close_connection[H11Protocol-WSProtocol] FAILED [218/279] >tests/protocols/test_websocket.py::test_send_and_close_connection[H11Protocol-WebSocketProtocol] FAILED [219/279] >tests/protocols/test_websocket.py::test_send_text_data_to_server[H11Protocol-WSProtocol] FAILED [220/279] >tests/protocols/test_websocket.py::test_send_text_data_to_server[H11Protocol-WebSocketProtocol] FAILED [221/279] >tests/protocols/test_websocket.py::test_send_binary_data_to_server[H11Protocol-WSProtocol] FAILED [222/279] >tests/protocols/test_websocket.py::test_send_binary_data_to_server[H11Protocol-WebSocketProtocol] FAILED [223/279] >tests/protocols/test_websocket.py::test_send_after_protocol_close[H11Protocol-WSProtocol] FAILED [224/279] >tests/protocols/test_websocket.py::test_send_after_protocol_close[H11Protocol-WebSocketProtocol] FAILED [225/279] >tests/protocols/test_websocket.py::test_missing_handshake[H11Protocol-WSProtocol] FAILED [226/279] >tests/protocols/test_websocket.py::test_missing_handshake[H11Protocol-WebSocketProtocol] FAILED [227/279] >tests/protocols/test_websocket.py::test_send_before_handshake[H11Protocol-WSProtocol] FAILED [228/279] >tests/protocols/test_websocket.py::test_send_before_handshake[H11Protocol-WebSocketProtocol] FAILED [229/279] >tests/protocols/test_websocket.py::test_duplicate_handshake[H11Protocol-WSProtocol] FAILED [230/279] >tests/protocols/test_websocket.py::test_duplicate_handshake[H11Protocol-WebSocketProtocol] FAILED [231/279] >tests/protocols/test_websocket.py::test_asgi_return_value[H11Protocol-WSProtocol] FAILED [232/279] >tests/protocols/test_websocket.py::test_asgi_return_value[H11Protocol-WebSocketProtocol] FAILED [233/279] >tests/protocols/test_websocket.py::test_app_close[none_as_reason-None-H11Protocol-WSProtocol] FAILED [234/279] >tests/protocols/test_websocket.py::test_app_close[none_as_reason-None-H11Protocol-WebSocketProtocol] FAILED [235/279] >tests/protocols/test_websocket.py::test_app_close[none_as_reason-1000-H11Protocol-WSProtocol] FAILED [236/279] >tests/protocols/test_websocket.py::test_app_close[none_as_reason-1000-H11Protocol-WebSocketProtocol] FAILED [237/279] >tests/protocols/test_websocket.py::test_app_close[none_as_reason-1001-H11Protocol-WSProtocol] FAILED [238/279] >tests/protocols/test_websocket.py::test_app_close[none_as_reason-1001-H11Protocol-WebSocketProtocol] FAILED [239/279] >tests/protocols/test_websocket.py::test_app_close[normal_reason-None-H11Protocol-WSProtocol] FAILED [240/279] >tests/protocols/test_websocket.py::test_app_close[normal_reason-None-H11Protocol-WebSocketProtocol] FAILED [241/279] >tests/protocols/test_websocket.py::test_app_close[normal_reason-1000-H11Protocol-WSProtocol] FAILED [242/279] >tests/protocols/test_websocket.py::test_app_close[normal_reason-1000-H11Protocol-WebSocketProtocol] FAILED [243/279] >tests/protocols/test_websocket.py::test_app_close[normal_reason-1001-H11Protocol-WSProtocol] FAILED [244/279] >tests/protocols/test_websocket.py::test_app_close[normal_reason-1001-H11Protocol-WebSocketProtocol] FAILED [245/279] >tests/protocols/test_websocket.py::test_app_close[without_reason-None-H11Protocol-WSProtocol] FAILED [246/279] >tests/protocols/test_websocket.py::test_app_close[without_reason-None-H11Protocol-WebSocketProtocol] FAILED [247/279] >tests/protocols/test_websocket.py::test_app_close[without_reason-1000-H11Protocol-WSProtocol] FAILED [248/279] >tests/protocols/test_websocket.py::test_app_close[without_reason-1000-H11Protocol-WebSocketProtocol] FAILED [249/279] >tests/protocols/test_websocket.py::test_app_close[without_reason-1001-H11Protocol-WSProtocol] FAILED [250/279] >tests/protocols/test_websocket.py::test_app_close[without_reason-1001-H11Protocol-WebSocketProtocol] FAILED [251/279] >tests/protocols/test_websocket.py::test_client_close[H11Protocol-WSProtocol] FAILED [252/279] >tests/protocols/test_websocket.py::test_client_close[H11Protocol-WebSocketProtocol] FAILED [253/279] >tests/protocols/test_websocket.py::test_client_connection_lost[H11Protocol-WSProtocol] FAILED [254/279] >tests/protocols/test_websocket.py::test_client_connection_lost[H11Protocol-WebSocketProtocol] FAILED [255/279] >tests/protocols/test_websocket.py::test_connection_lost_before_handshake_complete[H11Protocol-WSProtocol] FAILED [256/279] >tests/protocols/test_websocket.py::test_connection_lost_before_handshake_complete[H11Protocol-WebSocketProtocol] FAILED [257/279] >tests/protocols/test_websocket.py::test_send_close_on_server_shutdown[H11Protocol-WSProtocol] FAILED [258/279] >tests/protocols/test_websocket.py::test_send_close_on_server_shutdown[H11Protocol-WebSocketProtocol] FAILED [259/279] >tests/protocols/test_websocket.py::test_subprotocols[proto1-H11Protocol-WSProtocol] FAILED [260/279] >tests/protocols/test_websocket.py::test_subprotocols[proto1-H11Protocol-WebSocketProtocol] FAILED [261/279] >tests/protocols/test_websocket.py::test_subprotocols[proto2-H11Protocol-WSProtocol] FAILED [262/279] >tests/protocols/test_websocket.py::test_subprotocols[proto2-H11Protocol-WebSocketProtocol] FAILED [263/279] >tests/protocols/test_websocket.py::test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults-H11Protocol-WebSocketProtocol] FAILED [264/279] >tests/protocols/test_websocket.py::test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults+1-H11Protocol-WebSocketProtocol] FAILED [265/279] >tests/protocols/test_websocket.py::test_send_binary_data_to_server_bigger_than_default[max=10 sent=10-H11Protocol-WebSocketProtocol] FAILED [266/279] >tests/protocols/test_websocket.py::test_send_binary_data_to_server_bigger_than_default[max=10 sent=11-H11Protocol-WebSocketProtocol] FAILED [267/279] >tests/protocols/test_websocket.py::test_server_reject_connection[H11Protocol-WSProtocol] FAILED [268/279] >tests/protocols/test_websocket.py::test_server_reject_connection[H11Protocol-WebSocketProtocol] FAILED [269/279] >tests/protocols/test_websocket.py::test_server_can_read_messages_in_buffer_after_close[H11Protocol-WSProtocol] FAILED [270/279] >tests/protocols/test_websocket.py::test_server_can_read_messages_in_buffer_after_close[H11Protocol-WebSocketProtocol] FAILED [271/279] >tests/protocols/test_websocket.py::test_default_server_headers[H11Protocol-WSProtocol] FAILED [272/279] >tests/protocols/test_websocket.py::test_default_server_headers[H11Protocol-WebSocketProtocol] FAILED [273/279] >tests/protocols/test_websocket.py::test_no_server_headers[H11Protocol-WSProtocol] FAILED [274/279] >tests/protocols/test_websocket.py::test_no_server_headers[H11Protocol-WebSocketProtocol] FAILED [275/279] >tests/protocols/test_websocket.py::test_no_date_header[H11Protocol-WSProtocol] FAILED [276/279] >tests/protocols/test_websocket.py::test_multiple_server_header[H11Protocol-WSProtocol] FAILED [277/279] >tests/protocols/test_websocket.py::test_multiple_server_header[H11Protocol-WebSocketProtocol] FAILED [278/279] >tests/supervisors/test_multiprocess.py::test_multiprocess_run PASSED [279/279] > >================================================================== FAILURES =================================================================== >________________________________________________________ test_default_default_headers _________________________________________________________ > >pyfuncitem = <Function test_default_default_headers> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_default_default_headers>>} >pyfuncitem = <Function test_default_default_headers> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_default_default_headers> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_default_default_headers>>} >pyfuncitem = <Function test_default_default_headers> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________________ test_override_server_header _________________________________________________________ > >pyfuncitem = <Function test_override_server_header> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_override_server_header>>} >pyfuncitem = <Function test_override_server_header> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_override_server_header> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_override_server_header>>} >pyfuncitem = <Function test_override_server_header> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________ test_disable_default_server_header ______________________________________________________ > >pyfuncitem = <Function test_disable_default_server_header> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_disable_default_server_header>>} >pyfuncitem = <Function test_disable_default_server_header> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_disable_default_server_header> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_disable_default_server_header>>} >pyfuncitem = <Function test_disable_default_server_header> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________ test_override_server_header_multiple_times __________________________________________________ > >pyfuncitem = <Function test_override_server_header_multiple_times> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_override_server_header_multiple_times>>} >pyfuncitem = <Function test_override_server_header_multiple_times> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_override_server_header_multiple_times> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_override_server_header_multiple_times>>} >pyfuncitem = <Function test_override_server_header_multiple_times> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________________ test_add_additional_header __________________________________________________________ > >pyfuncitem = <Function test_add_additional_header> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_add_additional_header>>} >pyfuncitem = <Function test_add_additional_header> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_add_additional_header> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_add_additional_header>>} >pyfuncitem = <Function test_add_additional_header> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________________ test_disable_default_date_header _______________________________________________________ > >pyfuncitem = <Function test_disable_default_date_header> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_disable_default_date_header>>} >pyfuncitem = <Function test_disable_default_date_header> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_disable_default_date_header> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_disable_default_date_header>>} >pyfuncitem = <Function test_disable_default_date_header> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________________________ test_return_close_header ___________________________________________________________ > >pyfuncitem = <Function test_return_close_header> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_return_close_header>>} >pyfuncitem = <Function test_return_close_header> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_return_close_header> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_return_close_header>>} >pyfuncitem = <Function test_return_close_header> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________________________ test_run[default] ______________________________________________________________ > >pyfuncitem = <Function test_run[default]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'host': None, > 'request': <FixtureRequest for <Function test_run[default]>>, > 'url': 'http://127.0.0.1:8000'} >pyfuncitem = <Function test_run[default]> >testargs = {'host': None, 'url': 'http://127.0.0.1:8000'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_run[default]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'host': None, > 'request': <FixtureRequest for <Function test_run[default]>>, > 'url': 'http://127.0.0.1:8000'} >pyfuncitem = <Function test_run[default]> >testargs = {'host': None, 'url': 'http://127.0.0.1:8000'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________________ test_run[hostname] ______________________________________________________________ > >pyfuncitem = <Function test_run[hostname]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'host': 'localhost', > 'request': <FixtureRequest for <Function test_run[hostname]>>, > 'url': 'http://127.0.0.1:8000'} >pyfuncitem = <Function test_run[hostname]> >testargs = {'host': 'localhost', 'url': 'http://127.0.0.1:8000'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_run[hostname]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'host': 'localhost', > 'request': <FixtureRequest for <Function test_run[hostname]>>, > 'url': 'http://127.0.0.1:8000'} >pyfuncitem = <Function test_run[hostname]> >testargs = {'host': 'localhost', 'url': 'http://127.0.0.1:8000'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________________________ test_run[ipv6] ________________________________________________________________ > >pyfuncitem = <Function test_run[ipv6]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'host': '::1', > 'request': <FixtureRequest for <Function test_run[ipv6]>>, > 'url': 'http://[::1]:8000'} >pyfuncitem = <Function test_run[ipv6]> >testargs = {'host': '::1', 'url': 'http://[::1]:8000'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_run[ipv6]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'host': '::1', > 'request': <FixtureRequest for <Function test_run[ipv6]>>, > 'url': 'http://[::1]:8000'} >pyfuncitem = <Function test_run[ipv6]> >testargs = {'host': '::1', 'url': 'http://[::1]:8000'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________________________ test_run_multiprocess ____________________________________________________________ > >pyfuncitem = <Function test_run_multiprocess> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run_multiprocess>>} >pyfuncitem = <Function test_run_multiprocess> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_run_multiprocess> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run_multiprocess>>} >pyfuncitem = <Function test_run_multiprocess> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________________________ test_run_reload _______________________________________________________________ > >pyfuncitem = <Function test_run_reload> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run_reload>>} >pyfuncitem = <Function test_run_reload> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_run_reload> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run_reload>>} >pyfuncitem = <Function test_run_reload> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee84a7d0> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________________________________ test_run ___________________________________________________________________ > >pyfuncitem = <Function test_run> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run>>, > 'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp573te_ta.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee459440>, > 'tls_certificate': <trustme.LeafCert object at 0x7f26ee89f370>, > 'tls_certificate_authority': <trustme.CA object at 0x7f26ee89fb50>, > 'tls_certificate_private_key_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpidd5kitz.pem', > 'tls_certificate_server_cert_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpfqspq92w.pem'} >pyfuncitem = <Function test_run> >testargs = {'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp573te_ta.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee459440>, > 'tls_certificate_private_key_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpidd5kitz.pem', > 'tls_certificate_server_cert_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpfqspq92w.pem'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_run> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run>>, > 'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp573te_ta.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee459440>, > 'tls_certificate': <trustme.LeafCert object at 0x7f26ee89f370>, > 'tls_certificate_authority': <trustme.CA object at 0x7f26ee89fb50>, > 'tls_certificate_private_key_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpidd5kitz.pem', > 'tls_certificate_server_cert_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpfqspq92w.pem'} >pyfuncitem = <Function test_run> >testargs = {'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp573te_ta.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee459440>, > 'tls_certificate_private_key_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpidd5kitz.pem', > 'tls_certificate_server_cert_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpfqspq92w.pem'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________________________ test_run_chain ________________________________________________________________ > >pyfuncitem = <Function test_run_chain> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run_chain>>, > 'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpyjx1ffx_.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee45b2c0>, > 'tls_certificate': <trustme.LeafCert object at 0x7f26ee4ba2f0>, > 'tls_certificate_authority': <trustme.CA object at 0x7f26ee4ba5c0>, > 'tls_certificate_key_and_chain_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpoifxu5sc.pem'} >pyfuncitem = <Function test_run_chain> >testargs = {'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpyjx1ffx_.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee45b2c0>, > 'tls_certificate_key_and_chain_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpoifxu5sc.pem'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_run_chain> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run_chain>>, > 'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpyjx1ffx_.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee45b2c0>, > 'tls_certificate': <trustme.LeafCert object at 0x7f26ee4ba2f0>, > 'tls_certificate_authority': <trustme.CA object at 0x7f26ee4ba5c0>, > 'tls_certificate_key_and_chain_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpoifxu5sc.pem'} >pyfuncitem = <Function test_run_chain> >testargs = {'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpyjx1ffx_.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee45b2c0>, > 'tls_certificate_key_and_chain_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpoifxu5sc.pem'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________________ test_run_chain_only _____________________________________________________________ > >pyfuncitem = <Function test_run_chain_only> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run_chain_only>>, > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee4594c0>, > 'tls_certificate': <trustme.LeafCert object at 0x7f26ee670b50>, > 'tls_certificate_authority': <trustme.CA object at 0x7f26ee672740>, > 'tls_certificate_key_and_chain_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpni5hnvd2.pem'} >pyfuncitem = <Function test_run_chain_only> >testargs = {'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee4594c0>, > 'tls_certificate_key_and_chain_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpni5hnvd2.pem'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_run_chain_only> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run_chain_only>>, > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee4594c0>, > 'tls_certificate': <trustme.LeafCert object at 0x7f26ee670b50>, > 'tls_certificate_authority': <trustme.CA object at 0x7f26ee672740>, > 'tls_certificate_key_and_chain_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpni5hnvd2.pem'} >pyfuncitem = <Function test_run_chain_only> >testargs = {'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee4594c0>, > 'tls_certificate_key_and_chain_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmpni5hnvd2.pem'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________________________ test_run_password ______________________________________________________________ > >pyfuncitem = <Function test_run_password> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run_password>>, > 'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp3ws41c3d.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee459840>, > 'tls_certificate': <trustme.LeafCert object at 0x7f26ee4ba8f0>, > 'tls_certificate_authority': <trustme.CA object at 0x7f26ee4ba770>, > 'tls_certificate_private_key_encrypted_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp73mrheik.pem', > 'tls_certificate_server_cert_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp94mkzmts.pem'} >pyfuncitem = <Function test_run_password> >testargs = {'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp3ws41c3d.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee459840>, > 'tls_certificate_private_key_encrypted_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp73mrheik.pem', > 'tls_certificate_server_cert_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp94mkzmts.pem'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_run_password> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_run_password>>, > 'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp3ws41c3d.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee459840>, > 'tls_certificate': <trustme.LeafCert object at 0x7f26ee4ba8f0>, > 'tls_certificate_authority': <trustme.CA object at 0x7f26ee4ba770>, > 'tls_certificate_private_key_encrypted_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp73mrheik.pem', > 'tls_certificate_server_cert_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp94mkzmts.pem'} >pyfuncitem = <Function test_run_password> >testargs = {'tls_ca_certificate_pem_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp3ws41c3d.pem', > 'tls_ca_ssl_context': <ssl.SSLContext object at 0x7f26ee459840>, > 'tls_certificate_private_key_encrypted_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp73mrheik.pem', > 'tls_certificate_server_cert_path': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/tmp94mkzmts.pem'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________________ test_trace_logging ______________________________________________________________ > >pyfuncitem = <Function test_trace_logging> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3851e0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_trace_logging>>} >pyfuncitem = <Function test_trace_logging> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3851e0>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_trace_logging> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3851e0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_trace_logging>>} >pyfuncitem = <Function test_trace_logging> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3851e0>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________ test_trace_logging_on_http_protocol[H11Protocol] _______________________________________________ > >pyfuncitem = <Function test_trace_logging_on_http_protocol[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee200400>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_trace_logging_on_http_protocol[H11Protocol]>>} >pyfuncitem = <Function test_trace_logging_on_http_protocol[H11Protocol]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee200400>, > 'http_protocol': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_trace_logging_on_http_protocol[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee200400>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_trace_logging_on_http_protocol[H11Protocol]>>} >pyfuncitem = <Function test_trace_logging_on_http_protocol[H11Protocol]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee200400>, > 'http_protocol': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________________ test_trace_logging_on_ws_protocol[websockets] ________________________________________________ > >pyfuncitem = <Function test_trace_logging_on_ws_protocol[websockets]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee671660>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_trace_logging_on_ws_protocol[websockets]>>, > 'ws_protocol': 'websockets'} >pyfuncitem = <Function test_trace_logging_on_ws_protocol[websockets]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee671660>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'ws_protocol': 'websockets'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_trace_logging_on_ws_protocol[websockets]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee671660>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_trace_logging_on_ws_protocol[websockets]>>, > 'ws_protocol': 'websockets'} >pyfuncitem = <Function test_trace_logging_on_ws_protocol[websockets]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee671660>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'ws_protocol': 'websockets'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________ test_trace_logging_on_ws_protocol[wsproto] __________________________________________________ > >pyfuncitem = <Function test_trace_logging_on_ws_protocol[wsproto]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee4726b0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_trace_logging_on_ws_protocol[wsproto]>>, > 'ws_protocol': 'wsproto'} >pyfuncitem = <Function test_trace_logging_on_ws_protocol[wsproto]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee4726b0>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'ws_protocol': 'wsproto'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_trace_logging_on_ws_protocol[wsproto]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee4726b0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_trace_logging_on_ws_protocol[wsproto]>>, > 'ws_protocol': 'wsproto'} >pyfuncitem = <Function test_trace_logging_on_ws_protocol[wsproto]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee4726b0>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'ws_protocol': 'wsproto'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________________________ test_access_logging[True] __________________________________________________________ > >pyfuncitem = <Function test_access_logging[True]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee6249d0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_access_logging[True]>>, > 'use_colors': True} >pyfuncitem = <Function test_access_logging[True]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee6249d0>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'use_colors': True} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_access_logging[True]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee6249d0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_access_logging[True]>>, > 'use_colors': True} >pyfuncitem = <Function test_access_logging[True]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee6249d0>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'use_colors': True} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________________ test_access_logging[False] __________________________________________________________ > >pyfuncitem = <Function test_access_logging[False]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3aeb90>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_access_logging[False]>>, > 'use_colors': False} >pyfuncitem = <Function test_access_logging[False]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3aeb90>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'use_colors': False} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_access_logging[False]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3aeb90>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_access_logging[False]>>, > 'use_colors': False} >pyfuncitem = <Function test_access_logging[False]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3aeb90>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'use_colors': False} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________________________ test_access_logging[None] __________________________________________________________ > >pyfuncitem = <Function test_access_logging[None]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3b6140>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_access_logging[None]>>, > 'use_colors': None} >pyfuncitem = <Function test_access_logging[None]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3b6140>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'use_colors': None} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_access_logging[None]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3b6140>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_access_logging[None]>>, > 'use_colors': None} >pyfuncitem = <Function test_access_logging[None]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3b6140>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'use_colors': None} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________________ test_default_logging[True] __________________________________________________________ > >pyfuncitem = <Function test_default_logging[True]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee89df60>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_default_logging[True]>>, > 'use_colors': True} >pyfuncitem = <Function test_default_logging[True]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee89df60>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'use_colors': True} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_default_logging[True]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee89df60>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_default_logging[True]>>, > 'use_colors': True} >pyfuncitem = <Function test_default_logging[True]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee89df60>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'use_colors': True} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________________ test_default_logging[False] _________________________________________________________ > >pyfuncitem = <Function test_default_logging[False]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee23dc30>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_default_logging[False]>>, > 'use_colors': False} >pyfuncitem = <Function test_default_logging[False]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee23dc30>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'use_colors': False} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_default_logging[False]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee23dc30>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'request': <FixtureRequest for <Function test_default_logging[False]>>, > 'use_colors': False} >pyfuncitem = <Function test_default_logging[False]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee23dc30>, > 'logging_config': {'disable_existing_loggers': False, > 'formatters': {'access': {'()': 'uvicorn.logging.AccessFormatter', > 'fmt': '%(levelprefix)s ' > '%(client_addr)s - ' > '"%(request_line)s" ' > '%(status_code)s'}, > 'default': {'()': 'uvicorn.logging.DefaultFormatter', > 'fmt': '%(levelprefix)s ' > '%(message)s', > 'use_colors': None}}, > 'handlers': {'access': {'class': 'logging.StreamHandler', > 'formatter': 'access', > 'stream': 'ext://sys.stdout'}, > 'default': {'class': 'logging.StreamHandler', > 'formatter': 'default', > 'stream': 'ext://sys.stderr'}}, > 'loggers': {'uvicorn': {'handlers': ['default'], > 'level': 'INFO', > 'propagate': True}, > 'uvicorn.access': {'handlers': ['access'], > 'level': 'INFO', > 'propagate': False}, > 'uvicorn.error': {'level': 'INFO'}}, > 'version': 1}, > 'use_colors': False} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________________ test_running_log_using_uds __________________________________________________________ > >pyfuncitem = <Function test_running_log_using_uds> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee904970>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_running_log_using_uds>>, > 'short_socket_name': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/p-pnchpe1p-c0b58a22799cf413c5ea0968286d8c7d/my.sock', > 'tmp_path': PosixPath('/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/pytest-of-portage/pytest-0/test_running_log_using_uds0'), > 'tmp_path_factory': TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f26ef516ef0>, _basetemp=PosixPath('/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/pytest-of-portage/pytest-0'))} >pyfuncitem = <Function test_running_log_using_uds> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee904970>, > 'short_socket_name': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/p-pnchpe1p-c0b58a22799cf413c5ea0968286d8c7d/my.sock'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_running_log_using_uds> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee904970>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_running_log_using_uds>>, > 'short_socket_name': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/p-pnchpe1p-c0b58a22799cf413c5ea0968286d8c7d/my.sock', > 'tmp_path': PosixPath('/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/pytest-of-portage/pytest-0/test_running_log_using_uds0'), > 'tmp_path_factory': TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f26ef516ef0>, _basetemp=PosixPath('/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/pytest-of-portage/pytest-0'))} >pyfuncitem = <Function test_running_log_using_uds> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee904970>, > 'short_socket_name': '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/p-pnchpe1p-c0b58a22799cf413c5ea0968286d8c7d/my.sock'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________________________ test_running_log_using_fd __________________________________________________________ > >pyfuncitem = <Function test_running_log_using_fd> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee8b7250>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_running_log_using_fd>>} >pyfuncitem = <Function test_running_log_using_fd> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee8b7250>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_running_log_using_fd> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee8b7250>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_running_log_using_fd>>} >pyfuncitem = <Function test_running_log_using_fd> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee8b7250>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________________________ test_unknown_status_code ___________________________________________________________ > >pyfuncitem = <Function test_unknown_status_code> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee2917b0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_unknown_status_code>>} >pyfuncitem = <Function test_unknown_status_code> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee2917b0>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_unknown_status_code> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee2917b0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_unknown_status_code>>} >pyfuncitem = <Function test_unknown_status_code> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee2917b0>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________________ test_server_start_with_port_zero _______________________________________________________ > >pyfuncitem = <Function test_server_start_with_port_zero> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee74f3a0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_server_start_with_port_zero>>} >pyfuncitem = <Function test_server_start_with_port_zero> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee74f3a0>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_server_start_with_port_zero> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee74f3a0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_server_start_with_port_zero>>} >pyfuncitem = <Function test_server_start_with_port_zero> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee74f3a0>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________________ test_message_logger _____________________________________________________________ > >pyfuncitem = <Function test_message_logger> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3b5690>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_message_logger>>} >pyfuncitem = <Function test_message_logger> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3b5690>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_message_logger> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3b5690>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_message_logger>>} >pyfuncitem = <Function test_message_logger> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee3b5690>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________________________ test_message_logger_exc ___________________________________________________________ > >pyfuncitem = <Function test_message_logger_exc> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee292470>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_message_logger_exc>>} >pyfuncitem = <Function test_message_logger_exc> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee292470>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_message_logger_exc> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee292470>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_message_logger_exc>>} >pyfuncitem = <Function test_message_logger_exc> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee292470>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________ test_proxy_headers_trusted_hosts[*-Remote: https://1.2.3.4:0] ________________________________________ > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[*-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[*-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': '*'} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[*-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', 'trusted_hosts': '*'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[*-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[*-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': '*'} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[*-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', 'trusted_hosts': '*'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________ test_proxy_headers_trusted_hosts[127.0.0.1-Remote: https://1.2.3.4:0] ____________________________________ > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[127.0.0.1-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[127.0.0.1-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': '127.0.0.1'} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[127.0.0.1-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', 'trusted_hosts': '127.0.0.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[127.0.0.1-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[127.0.0.1-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': '127.0.0.1'} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[127.0.0.1-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', 'trusted_hosts': '127.0.0.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________ test_proxy_headers_trusted_hosts[trusted_hosts2-Remote: https://1.2.3.4:0] __________________________________ > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[trusted_hosts2-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[trusted_hosts2-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['127.0.0.1']} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[trusted_hosts2-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', 'trusted_hosts': ['127.0.0.1']} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[trusted_hosts2-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[trusted_hosts2-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['127.0.0.1']} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[trusted_hosts2-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', 'trusted_hosts': ['127.0.0.1']} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________ test_proxy_headers_trusted_hosts[trusted_hosts3-Remote: https://1.2.3.4:0] __________________________________ > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[trusted_hosts3-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[trusted_hosts3-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['127.0.0.1', '10.0.0.1']} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[trusted_hosts3-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['127.0.0.1', '10.0.0.1']} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[trusted_hosts3-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[trusted_hosts3-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['127.0.0.1', '10.0.0.1']} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[trusted_hosts3-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['127.0.0.1', '10.0.0.1']} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________ test_proxy_headers_trusted_hosts[127.0.0.1, 10.0.0.1-Remote: https://1.2.3.4:0] _______________________________ > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[127.0.0.1, 10.0.0.1-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[127.0.0.1, 10.0.0.1-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': '127.0.0.1, 10.0.0.1'} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[127.0.0.1, 10.0.0.1-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': '127.0.0.1, 10.0.0.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[127.0.0.1, 10.0.0.1-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[127.0.0.1, 10.0.0.1-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': '127.0.0.1, 10.0.0.1'} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[127.0.0.1, 10.0.0.1-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': '127.0.0.1, 10.0.0.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________ test_proxy_headers_trusted_hosts[192.168.0.1-Remote: http://127.0.0.1:123] __________________________________ > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[192.168.0.1-Remote: http://127.0.0.1:123]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[192.168.0.1-Remote: http://127.0.0.1:123]>>, > 'response_text': 'Remote: http://127.0.0.1:123', > 'trusted_hosts': '192.168.0.1'} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[192.168.0.1-Remote: http://127.0.0.1:123]> >testargs = {'response_text': 'Remote: http://127.0.0.1:123', > 'trusted_hosts': '192.168.0.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_trusted_hosts[192.168.0.1-Remote: http://127.0.0.1:123]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_trusted_hosts[192.168.0.1-Remote: http://127.0.0.1:123]>>, > 'response_text': 'Remote: http://127.0.0.1:123', > 'trusted_hosts': '192.168.0.1'} >pyfuncitem = <Function test_proxy_headers_trusted_hosts[192.168.0.1-Remote: http://127.0.0.1:123]> >testargs = {'response_text': 'Remote: http://127.0.0.1:123', > 'trusted_hosts': '192.168.0.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_proxy_headers_multiple_proxies[*-Remote: https://1.2.3.4:0] _______________________________________ > >pyfuncitem = <Function test_proxy_headers_multiple_proxies[*-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_multiple_proxies[*-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': '*'} >pyfuncitem = <Function test_proxy_headers_multiple_proxies[*-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', 'trusted_hosts': '*'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_multiple_proxies[*-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_multiple_proxies[*-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': '*'} >pyfuncitem = <Function test_proxy_headers_multiple_proxies[*-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', 'trusted_hosts': '*'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________ test_proxy_headers_multiple_proxies[trusted_hosts1-Remote: https://1.2.3.4:0] ________________________________ > >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts1-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_multiple_proxies[trusted_hosts1-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['127.0.0.1', '10.0.2.1', '192.168.0.2']} >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts1-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['127.0.0.1', '10.0.2.1', '192.168.0.2']} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts1-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_multiple_proxies[trusted_hosts1-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['127.0.0.1', '10.0.2.1', '192.168.0.2']} >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts1-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['127.0.0.1', '10.0.2.1', '192.168.0.2']} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________ test_proxy_headers_multiple_proxies[trusted_hosts2-Remote: https://1.2.3.4:0] ________________________________ > >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts2-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_multiple_proxies[trusted_hosts2-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['10.0.2.1', '192.168.0.2', '127.0.0.1']} >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts2-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['10.0.2.1', '192.168.0.2', '127.0.0.1']} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts2-Remote: https://1.2.3.4:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_multiple_proxies[trusted_hosts2-Remote: https://1.2.3.4:0]>>, > 'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['10.0.2.1', '192.168.0.2', '127.0.0.1']} >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts2-Remote: https://1.2.3.4:0]> >testargs = {'response_text': 'Remote: https://1.2.3.4:0', > 'trusted_hosts': ['10.0.2.1', '192.168.0.2', '127.0.0.1']} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________ test_proxy_headers_multiple_proxies[trusted_hosts3-Remote: https://10.0.2.1:0] ________________________________ > >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts3-Remote: https://10.0.2.1:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_multiple_proxies[trusted_hosts3-Remote: https://10.0.2.1:0]>>, > 'response_text': 'Remote: https://10.0.2.1:0', > 'trusted_hosts': ['192.168.0.2', '127.0.0.1']} >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts3-Remote: https://10.0.2.1:0]> >testargs = {'response_text': 'Remote: https://10.0.2.1:0', > 'trusted_hosts': ['192.168.0.2', '127.0.0.1']} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts3-Remote: https://10.0.2.1:0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_multiple_proxies[trusted_hosts3-Remote: https://10.0.2.1:0]>>, > 'response_text': 'Remote: https://10.0.2.1:0', > 'trusted_hosts': ['192.168.0.2', '127.0.0.1']} >pyfuncitem = <Function test_proxy_headers_multiple_proxies[trusted_hosts3-Remote: https://10.0.2.1:0]> >testargs = {'response_text': 'Remote: https://10.0.2.1:0', > 'trusted_hosts': ['192.168.0.2', '127.0.0.1']} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________ test_proxy_headers_invalid_x_forwarded_for __________________________________________________ > >pyfuncitem = <Function test_proxy_headers_invalid_x_forwarded_for> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_invalid_x_forwarded_for>>} >pyfuncitem = <Function test_proxy_headers_invalid_x_forwarded_for> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_proxy_headers_invalid_x_forwarded_for> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_proxy_headers_invalid_x_forwarded_for>>} >pyfuncitem = <Function test_proxy_headers_invalid_x_forwarded_for> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________________________________ test_wsgi_get ________________________________________________________________ > >pyfuncitem = <Function test_wsgi_get> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_wsgi_get>>} >pyfuncitem = <Function test_wsgi_get> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_wsgi_get> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_wsgi_get>>} >pyfuncitem = <Function test_wsgi_get> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________________________ test_wsgi_post ________________________________________________________________ > >pyfuncitem = <Function test_wsgi_post> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_wsgi_post>>} >pyfuncitem = <Function test_wsgi_post> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_wsgi_post> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_wsgi_post>>} >pyfuncitem = <Function test_wsgi_post> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________________________ test_wsgi_put_more_body ___________________________________________________________ > >pyfuncitem = <Function test_wsgi_put_more_body> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_wsgi_put_more_body>>} >pyfuncitem = <Function test_wsgi_put_more_body> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_wsgi_put_more_body> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_wsgi_put_more_body>>} >pyfuncitem = <Function test_wsgi_put_more_body> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________________ test_wsgi_exception _____________________________________________________________ > >pyfuncitem = <Function test_wsgi_exception> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_wsgi_exception>>} >pyfuncitem = <Function test_wsgi_exception> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_wsgi_exception> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_wsgi_exception>>} >pyfuncitem = <Function test_wsgi_exception> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________________ test_wsgi_exc_info ______________________________________________________________ > >pyfuncitem = <Function test_wsgi_exc_info> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_wsgi_exc_info>>} >pyfuncitem = <Function test_wsgi_exc_info> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_wsgi_exc_info> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_wsgi_exc_info>>} >pyfuncitem = <Function test_wsgi_exc_info> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________________________ test_get_request[H11Protocol] ________________________________________________________ > >pyfuncitem = <Function test_get_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_get_request[H11Protocol]>>} >pyfuncitem = <Function test_get_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_get_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_get_request[H11Protocol]>>} >pyfuncitem = <Function test_get_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________ test_request_logging[H11Protocol-/] _____________________________________________________ > >pyfuncitem = <Function test_request_logging[H11Protocol-/]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee201990>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'path': '/', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_request_logging[H11Protocol-/]>>} >pyfuncitem = <Function test_request_logging[H11Protocol-/]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee201990>, > 'path': '/', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_request_logging[H11Protocol-/]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee201990>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'path': '/', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_request_logging[H11Protocol-/]>>} >pyfuncitem = <Function test_request_logging[H11Protocol-/]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee201990>, > 'path': '/', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________________ test_request_logging[H11Protocol-/?foo] ___________________________________________________ > >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee2934c0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'path': '/?foo', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_request_logging[H11Protocol-/?foo]>>} >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee2934c0>, > 'path': '/?foo', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee2934c0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'path': '/?foo', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_request_logging[H11Protocol-/?foo]>>} >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee2934c0>, > 'path': '/?foo', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________ test_request_logging[H11Protocol-/?foo=bar] _________________________________________________ > >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo=bar]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee1fe8f0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'path': '/?foo=bar', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_request_logging[H11Protocol-/?foo=bar]>>} >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo=bar]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee1fe8f0>, > 'path': '/?foo=bar', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo=bar]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee1fe8f0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'path': '/?foo=bar', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_request_logging[H11Protocol-/?foo=bar]>>} >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo=bar]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee1fe8f0>, > 'path': '/?foo=bar', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________ test_request_logging[H11Protocol-/?foo=bar&baz=1] ______________________________________________ > >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo=bar&baz=1]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee19a050>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'path': '/?foo=bar&baz=1', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_request_logging[H11Protocol-/?foo=bar&baz=1]>>} >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo=bar&baz=1]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee19a050>, > 'path': '/?foo=bar&baz=1', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo=bar&baz=1]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee19a050>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'path': '/?foo=bar&baz=1', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_request_logging[H11Protocol-/?foo=bar&baz=1]>>} >pyfuncitem = <Function test_request_logging[H11Protocol-/?foo=bar&baz=1]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee19a050>, > 'path': '/?foo=bar&baz=1', > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________________ test_head_request[H11Protocol] ________________________________________________________ > >pyfuncitem = <Function test_head_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_head_request[H11Protocol]>>} >pyfuncitem = <Function test_head_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_head_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_head_request[H11Protocol]>>} >pyfuncitem = <Function test_head_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________________ test_post_request[H11Protocol] ________________________________________________________ > >pyfuncitem = <Function test_post_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_post_request[H11Protocol]>>} >pyfuncitem = <Function test_post_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_post_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_post_request[H11Protocol]>>} >pyfuncitem = <Function test_post_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________________ test_keepalive[H11Protocol] _________________________________________________________ > >pyfuncitem = <Function test_keepalive[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_keepalive[H11Protocol]>>} >pyfuncitem = <Function test_keepalive[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_keepalive[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_keepalive[H11Protocol]>>} >pyfuncitem = <Function test_keepalive[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________ test_keepalive_timeout[H11Protocol] _____________________________________________________ > >pyfuncitem = <Function test_keepalive_timeout[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_keepalive_timeout[H11Protocol]>>} >pyfuncitem = <Function test_keepalive_timeout[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_keepalive_timeout[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_keepalive_timeout[H11Protocol]>>} >pyfuncitem = <Function test_keepalive_timeout[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________________________ test_close[H11Protocol] ___________________________________________________________ > >pyfuncitem = <Function test_close[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_close[H11Protocol]>>} >pyfuncitem = <Function test_close[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_close[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_close[H11Protocol]>>} >pyfuncitem = <Function test_close[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________ test_chunked_encoding[H11Protocol] ______________________________________________________ > >pyfuncitem = <Function test_chunked_encoding[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_chunked_encoding[H11Protocol]>>} >pyfuncitem = <Function test_chunked_encoding[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_chunked_encoding[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_chunked_encoding[H11Protocol]>>} >pyfuncitem = <Function test_chunked_encoding[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________________ test_chunked_encoding_empty_body[H11Protocol] ________________________________________________ > >pyfuncitem = <Function test_chunked_encoding_empty_body[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_chunked_encoding_empty_body[H11Protocol]>>} >pyfuncitem = <Function test_chunked_encoding_empty_body[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_chunked_encoding_empty_body[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_chunked_encoding_empty_body[H11Protocol]>>} >pyfuncitem = <Function test_chunked_encoding_empty_body[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________ test_chunked_encoding_head_request[H11Protocol] _______________________________________________ > >pyfuncitem = <Function test_chunked_encoding_head_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_chunked_encoding_head_request[H11Protocol]>>} >pyfuncitem = <Function test_chunked_encoding_head_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_chunked_encoding_head_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_chunked_encoding_head_request[H11Protocol]>>} >pyfuncitem = <Function test_chunked_encoding_head_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________________ test_pipelined_requests[H11Protocol] _____________________________________________________ > >pyfuncitem = <Function test_pipelined_requests[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_pipelined_requests[H11Protocol]>>} >pyfuncitem = <Function test_pipelined_requests[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_pipelined_requests[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_pipelined_requests[H11Protocol]>>} >pyfuncitem = <Function test_pipelined_requests[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________________ test_undersized_request[H11Protocol] _____________________________________________________ > >pyfuncitem = <Function test_undersized_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_undersized_request[H11Protocol]>>} >pyfuncitem = <Function test_undersized_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_undersized_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_undersized_request[H11Protocol]>>} >pyfuncitem = <Function test_undersized_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________ test_oversized_request[H11Protocol] _____________________________________________________ > >pyfuncitem = <Function test_oversized_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_oversized_request[H11Protocol]>>} >pyfuncitem = <Function test_oversized_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_oversized_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_oversized_request[H11Protocol]>>} >pyfuncitem = <Function test_oversized_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________________ test_large_post_request[H11Protocol] _____________________________________________________ > >pyfuncitem = <Function test_large_post_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_large_post_request[H11Protocol]>>} >pyfuncitem = <Function test_large_post_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_large_post_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_large_post_request[H11Protocol]>>} >pyfuncitem = <Function test_large_post_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________________ test_invalid_http[H11Protocol] ________________________________________________________ > >pyfuncitem = <Function test_invalid_http[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_http[H11Protocol]>>} >pyfuncitem = <Function test_invalid_http[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_invalid_http[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_http[H11Protocol]>>} >pyfuncitem = <Function test_invalid_http[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________________ test_app_exception[H11Protocol] _______________________________________________________ > >pyfuncitem = <Function test_app_exception[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_app_exception[H11Protocol]>>} >pyfuncitem = <Function test_app_exception[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_exception[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_app_exception[H11Protocol]>>} >pyfuncitem = <Function test_app_exception[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________ test_exception_during_response[H11Protocol] _________________________________________________ > >pyfuncitem = <Function test_exception_during_response[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_exception_during_response[H11Protocol]>>} >pyfuncitem = <Function test_exception_during_response[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_exception_during_response[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_exception_during_response[H11Protocol]>>} >pyfuncitem = <Function test_exception_during_response[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________________ test_no_response_returned[H11Protocol] ____________________________________________________ > >pyfuncitem = <Function test_no_response_returned[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_no_response_returned[H11Protocol]>>} >pyfuncitem = <Function test_no_response_returned[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_no_response_returned[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_no_response_returned[H11Protocol]>>} >pyfuncitem = <Function test_no_response_returned[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________ test_partial_response_returned[H11Protocol] _________________________________________________ > >pyfuncitem = <Function test_partial_response_returned[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_partial_response_returned[H11Protocol]>>} >pyfuncitem = <Function test_partial_response_returned[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_partial_response_returned[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_partial_response_returned[H11Protocol]>>} >pyfuncitem = <Function test_partial_response_returned[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________________ test_duplicate_start_message[H11Protocol] __________________________________________________ > >pyfuncitem = <Function test_duplicate_start_message[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_duplicate_start_message[H11Protocol]>>} >pyfuncitem = <Function test_duplicate_start_message[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_duplicate_start_message[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_duplicate_start_message[H11Protocol]>>} >pyfuncitem = <Function test_duplicate_start_message[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________________ test_missing_start_message[H11Protocol] ___________________________________________________ > >pyfuncitem = <Function test_missing_start_message[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_missing_start_message[H11Protocol]>>} >pyfuncitem = <Function test_missing_start_message[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_missing_start_message[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_missing_start_message[H11Protocol]>>} >pyfuncitem = <Function test_missing_start_message[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________________ test_message_after_body_complete[H11Protocol] ________________________________________________ > >pyfuncitem = <Function test_message_after_body_complete[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_message_after_body_complete[H11Protocol]>>} >pyfuncitem = <Function test_message_after_body_complete[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_message_after_body_complete[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_message_after_body_complete[H11Protocol]>>} >pyfuncitem = <Function test_message_after_body_complete[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________________ test_value_returned[H11Protocol] _______________________________________________________ > >pyfuncitem = <Function test_value_returned[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_value_returned[H11Protocol]>>} >pyfuncitem = <Function test_value_returned[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_value_returned[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_value_returned[H11Protocol]>>} >pyfuncitem = <Function test_value_returned[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________________ test_early_disconnect[H11Protocol] ______________________________________________________ > >pyfuncitem = <Function test_early_disconnect[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_early_disconnect[H11Protocol]>>} >pyfuncitem = <Function test_early_disconnect[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_early_disconnect[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_early_disconnect[H11Protocol]>>} >pyfuncitem = <Function test_early_disconnect[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________________ test_early_response[H11Protocol] _______________________________________________________ > >pyfuncitem = <Function test_early_response[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_early_response[H11Protocol]>>} >pyfuncitem = <Function test_early_response[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_early_response[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_early_response[H11Protocol]>>} >pyfuncitem = <Function test_early_response[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________________ test_read_after_response[H11Protocol] ____________________________________________________ > >pyfuncitem = <Function test_read_after_response[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_read_after_response[H11Protocol]>>} >pyfuncitem = <Function test_read_after_response[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_read_after_response[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_read_after_response[H11Protocol]>>} >pyfuncitem = <Function test_read_after_response[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________________ test_http10_request[H11Protocol] _______________________________________________________ > >pyfuncitem = <Function test_http10_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_http10_request[H11Protocol]>>} >pyfuncitem = <Function test_http10_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_http10_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_http10_request[H11Protocol]>>} >pyfuncitem = <Function test_http10_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________________ test_root_path[H11Protocol] _________________________________________________________ > >pyfuncitem = <Function test_root_path[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_root_path[H11Protocol]>>} >pyfuncitem = <Function test_root_path[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_root_path[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_root_path[H11Protocol]>>} >pyfuncitem = <Function test_root_path[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________________ test_raw_path[H11Protocol] __________________________________________________________ > >pyfuncitem = <Function test_raw_path[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_raw_path[H11Protocol]>>} >pyfuncitem = <Function test_raw_path[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_raw_path[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_raw_path[H11Protocol]>>} >pyfuncitem = <Function test_raw_path[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________________ test_max_concurrency[H11Protocol] ______________________________________________________ > >pyfuncitem = <Function test_max_concurrency[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_max_concurrency[H11Protocol]>>} >pyfuncitem = <Function test_max_concurrency[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_max_concurrency[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_max_concurrency[H11Protocol]>>} >pyfuncitem = <Function test_max_concurrency[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________________ test_shutdown_during_request[H11Protocol] __________________________________________________ > >pyfuncitem = <Function test_shutdown_during_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_shutdown_during_request[H11Protocol]>>} >pyfuncitem = <Function test_shutdown_during_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_shutdown_during_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_shutdown_during_request[H11Protocol]>>} >pyfuncitem = <Function test_shutdown_during_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________________ test_shutdown_during_idle[H11Protocol] ____________________________________________________ > >pyfuncitem = <Function test_shutdown_during_idle[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_shutdown_during_idle[H11Protocol]>>} >pyfuncitem = <Function test_shutdown_during_idle[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_shutdown_during_idle[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_shutdown_during_idle[H11Protocol]>>} >pyfuncitem = <Function test_shutdown_during_idle[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________ test_100_continue_sent_when_body_consumed[H11Protocol] ____________________________________________ > >pyfuncitem = <Function test_100_continue_sent_when_body_consumed[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_100_continue_sent_when_body_consumed[H11Protocol]>>} >pyfuncitem = <Function test_100_continue_sent_when_body_consumed[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_100_continue_sent_when_body_consumed[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_100_continue_sent_when_body_consumed[H11Protocol]>>} >pyfuncitem = <Function test_100_continue_sent_when_body_consumed[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________ test_100_continue_not_sent_when_body_not_consumed[H11Protocol] ________________________________________ > >pyfuncitem = <Function test_100_continue_not_sent_when_body_not_consumed[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_100_continue_not_sent_when_body_not_consumed[H11Protocol]>>} >pyfuncitem = <Function test_100_continue_not_sent_when_body_not_consumed[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_100_continue_not_sent_when_body_not_consumed[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_100_continue_not_sent_when_body_not_consumed[H11Protocol]>>} >pyfuncitem = <Function test_100_continue_not_sent_when_body_not_consumed[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________ test_supported_upgrade_request[H11Protocol] _________________________________________________ > >pyfuncitem = <Function test_supported_upgrade_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_supported_upgrade_request[H11Protocol]>>} >pyfuncitem = <Function test_supported_upgrade_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_supported_upgrade_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_supported_upgrade_request[H11Protocol]>>} >pyfuncitem = <Function test_supported_upgrade_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________ test_unsupported_ws_upgrade_request[H11Protocol] _______________________________________________ > >pyfuncitem = <Function test_unsupported_ws_upgrade_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_unsupported_ws_upgrade_request[H11Protocol]>>} >pyfuncitem = <Function test_unsupported_ws_upgrade_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_unsupported_ws_upgrade_request[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_unsupported_ws_upgrade_request[H11Protocol]>>} >pyfuncitem = <Function test_unsupported_ws_upgrade_request[H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________ test_unsupported_ws_upgrade_request_warn_on_auto[H11Protocol] ________________________________________ > >pyfuncitem = <Function test_unsupported_ws_upgrade_request_warn_on_auto[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee386f50>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_unsupported_ws_upgrade_request_warn_on_auto[H11Protocol]>>} >pyfuncitem = <Function test_unsupported_ws_upgrade_request_warn_on_auto[H11Protocol]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee386f50>, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_unsupported_ws_upgrade_request_warn_on_auto[H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee386f50>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_unsupported_ws_upgrade_request_warn_on_auto[H11Protocol]>>} >pyfuncitem = <Function test_unsupported_ws_upgrade_request_warn_on_auto[H11Protocol]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee386f50>, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________________ test_http2_upgrade_request[auto-H11Protocol] _________________________________________________ > >pyfuncitem = <Function test_http2_upgrade_request[auto-H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_http2_upgrade_request[auto-H11Protocol]>>, > 'ws': 'auto'} >pyfuncitem = <Function test_http2_upgrade_request[auto-H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws': 'auto'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_http2_upgrade_request[auto-H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_http2_upgrade_request[auto-H11Protocol]>>, > 'ws': 'auto'} >pyfuncitem = <Function test_http2_upgrade_request[auto-H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws': 'auto'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________________ test_http2_upgrade_request[none-H11Protocol] _________________________________________________ > >pyfuncitem = <Function test_http2_upgrade_request[none-H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_http2_upgrade_request[none-H11Protocol]>>, > 'ws': 'none'} >pyfuncitem = <Function test_http2_upgrade_request[none-H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws': 'none'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_http2_upgrade_request[none-H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_http2_upgrade_request[none-H11Protocol]>>, > 'ws': 'none'} >pyfuncitem = <Function test_http2_upgrade_request[none-H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws': 'none'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________ test_http2_upgrade_request[websockets-H11Protocol] ______________________________________________ > >pyfuncitem = <Function test_http2_upgrade_request[websockets-H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_http2_upgrade_request[websockets-H11Protocol]>>, > 'ws': 'websockets'} >pyfuncitem = <Function test_http2_upgrade_request[websockets-H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws': 'websockets'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_http2_upgrade_request[websockets-H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_http2_upgrade_request[websockets-H11Protocol]>>, > 'ws': 'websockets'} >pyfuncitem = <Function test_http2_upgrade_request[websockets-H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws': 'websockets'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________ test_http2_upgrade_request[wsproto-H11Protocol] _______________________________________________ > >pyfuncitem = <Function test_http2_upgrade_request[wsproto-H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_http2_upgrade_request[wsproto-H11Protocol]>>, > 'ws': 'wsproto'} >pyfuncitem = <Function test_http2_upgrade_request[wsproto-H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws': 'wsproto'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_http2_upgrade_request[wsproto-H11Protocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_http2_upgrade_request[wsproto-H11Protocol]>>, > 'ws': 'wsproto'} >pyfuncitem = <Function test_http2_upgrade_request[wsproto-H11Protocol]> >testargs = {'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws': 'wsproto'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________ test_scopes[H11Protocol-asgi3app-expected_scopes0] ______________________________________________ > >pyfuncitem = <Function test_scopes[H11Protocol-asgi3app-expected_scopes0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'asgi2or3_app': <function asgi3app at 0x7f26ee50f490>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_scopes': {'spec_version': '2.3', 'version': '3.0'}, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_scopes[H11Protocol-asgi3app-expected_scopes0]>>} >pyfuncitem = <Function test_scopes[H11Protocol-asgi3app-expected_scopes0]> >testargs = {'asgi2or3_app': <function asgi3app at 0x7f26ee50f490>, > 'expected_scopes': {'spec_version': '2.3', 'version': '3.0'}, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_scopes[H11Protocol-asgi3app-expected_scopes0]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'asgi2or3_app': <function asgi3app at 0x7f26ee50f490>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_scopes': {'spec_version': '2.3', 'version': '3.0'}, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_scopes[H11Protocol-asgi3app-expected_scopes0]>>} >pyfuncitem = <Function test_scopes[H11Protocol-asgi3app-expected_scopes0]> >testargs = {'asgi2or3_app': <function asgi3app at 0x7f26ee50f490>, > 'expected_scopes': {'spec_version': '2.3', 'version': '3.0'}, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________ test_scopes[H11Protocol-asgi2app-expected_scopes1] ______________________________________________ > >pyfuncitem = <Function test_scopes[H11Protocol-asgi2app-expected_scopes1]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'asgi2or3_app': <function asgi2app at 0x7f26ee50f520>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_scopes': {'spec_version': '2.3', 'version': '2.0'}, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_scopes[H11Protocol-asgi2app-expected_scopes1]>>} >pyfuncitem = <Function test_scopes[H11Protocol-asgi2app-expected_scopes1]> >testargs = {'asgi2or3_app': <function asgi2app at 0x7f26ee50f520>, > 'expected_scopes': {'spec_version': '2.3', 'version': '2.0'}, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_scopes[H11Protocol-asgi2app-expected_scopes1]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'asgi2or3_app': <function asgi2app at 0x7f26ee50f520>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_scopes': {'spec_version': '2.3', 'version': '2.0'}, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_scopes[H11Protocol-asgi2app-expected_scopes1]>>} >pyfuncitem = <Function test_scopes[H11Protocol-asgi2app-expected_scopes1]> >testargs = {'asgi2or3_app': <function asgi2app at 0x7f26ee50f520>, > 'expected_scopes': {'spec_version': '2.3', 'version': '2.0'}, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________ test_invalid_http_request[H11Protocol-invalid-method] ____________________________________________ > >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-method]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee0ebf10>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_http_request[H11Protocol-invalid-method]>>, > 'request_line': b'G?T / HTTP/1.1'} >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-method]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee0ebf10>, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request_line': b'G?T / HTTP/1.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-method]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee0ebf10>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_http_request[H11Protocol-invalid-method]>>, > 'request_line': b'G?T / HTTP/1.1'} >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-method]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee0ebf10>, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request_line': b'G?T / HTTP/1.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________ test_invalid_http_request[H11Protocol-invalid-path] _____________________________________________ > >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-path]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee8c9ae0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_http_request[H11Protocol-invalid-path]>>, > 'request_line': b'GET /?x=y z HTTP/1.1'} >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-path]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee8c9ae0>, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request_line': b'GET /?x=y z HTTP/1.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-path]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee8c9ae0>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_http_request[H11Protocol-invalid-path]>>, > 'request_line': b'GET /?x=y z HTTP/1.1'} >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-path]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26ee8c9ae0>, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request_line': b'GET /?x=y z HTTP/1.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_invalid_http_request[H11Protocol-invalid-http-version] _________________________________________ > >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-http-version]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26edee1a50>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_http_request[H11Protocol-invalid-http-version]>>, > 'request_line': b'GET / HTTP1.1'} >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-http-version]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26edee1a50>, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request_line': b'GET / HTTP1.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-http-version]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26edee1a50>, > 'django_db_blocker': None, > 'django_test_environment': None, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_http_request[H11Protocol-invalid-http-version]>>, > 'request_line': b'GET / HTTP1.1'} >pyfuncitem = <Function test_invalid_http_request[H11Protocol-invalid-http-version]> >testargs = {'caplog': <_pytest.logging.LogCaptureFixture object at 0x7f26edee1a50>, > 'protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request_line': b'GET / HTTP1.1'} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________________ test_huge_headers_h11protocol_failure ____________________________________________________ > >pyfuncitem = <Function test_huge_headers_h11protocol_failure> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_huge_headers_h11protocol_failure>>} >pyfuncitem = <Function test_huge_headers_h11protocol_failure> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_huge_headers_h11protocol_failure> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_huge_headers_h11protocol_failure>>} >pyfuncitem = <Function test_huge_headers_h11protocol_failure> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________ test_huge_headers_h11protocol_failure_with_setting ______________________________________________ > >pyfuncitem = <Function test_huge_headers_h11protocol_failure_with_setting> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_huge_headers_h11protocol_failure_with_setting>>} >pyfuncitem = <Function test_huge_headers_h11protocol_failure_with_setting> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_huge_headers_h11protocol_failure_with_setting> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_huge_headers_h11protocol_failure_with_setting>>} >pyfuncitem = <Function test_huge_headers_h11protocol_failure_with_setting> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________________ test_huge_headers_h11_max_incomplete _____________________________________________________ > >pyfuncitem = <Function test_huge_headers_h11_max_incomplete> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_huge_headers_h11_max_incomplete>>} >pyfuncitem = <Function test_huge_headers_h11_max_incomplete> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_huge_headers_h11_max_incomplete> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'request': <FixtureRequest for <Function test_huge_headers_h11_max_incomplete>>} >pyfuncitem = <Function test_huge_headers_h11_max_incomplete> >testargs = {} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________________ test_invalid_upgrade[H11Protocol-WSProtocol] _________________________________________________ > >pyfuncitem = <Function test_invalid_upgrade[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_upgrade[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_invalid_upgrade[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_invalid_upgrade[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_upgrade[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_invalid_upgrade[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________ test_invalid_upgrade[H11Protocol-WebSocketProtocol] _____________________________________________ > >pyfuncitem = <Function test_invalid_upgrade[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_upgrade[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_invalid_upgrade[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_invalid_upgrade[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_invalid_upgrade[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_invalid_upgrade[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________ test_accept_connection[H11Protocol-WSProtocol] ________________________________________________ > >pyfuncitem = <Function test_accept_connection[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_accept_connection[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_accept_connection[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_accept_connection[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_accept_connection[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_accept_connection[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________ test_accept_connection[H11Protocol-WebSocketProtocol] ____________________________________________ > >pyfuncitem = <Function test_accept_connection[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_accept_connection[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_accept_connection[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_accept_connection[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_accept_connection[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_accept_connection[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________ test_supports_permessage_deflate_extension[H11Protocol-WSProtocol] ______________________________________ > >pyfuncitem = <Function test_supports_permessage_deflate_extension[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_supports_permessage_deflate_extension[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_supports_permessage_deflate_extension[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_supports_permessage_deflate_extension[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_supports_permessage_deflate_extension[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_supports_permessage_deflate_extension[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________ test_supports_permessage_deflate_extension[H11Protocol-WebSocketProtocol] __________________________________ > >pyfuncitem = <Function test_supports_permessage_deflate_extension[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_supports_permessage_deflate_extension[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_supports_permessage_deflate_extension[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_supports_permessage_deflate_extension[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_supports_permessage_deflate_extension[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_supports_permessage_deflate_extension[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________ test_can_disable_permessage_deflate_extension[H11Protocol-WSProtocol] ____________________________________ > >pyfuncitem = <Function test_can_disable_permessage_deflate_extension[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_can_disable_permessage_deflate_extension[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_can_disable_permessage_deflate_extension[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_can_disable_permessage_deflate_extension[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_can_disable_permessage_deflate_extension[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_can_disable_permessage_deflate_extension[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________ test_can_disable_permessage_deflate_extension[H11Protocol-WebSocketProtocol] _________________________________ > >pyfuncitem = <Function test_can_disable_permessage_deflate_extension[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_can_disable_permessage_deflate_extension[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_can_disable_permessage_deflate_extension[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_can_disable_permessage_deflate_extension[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_can_disable_permessage_deflate_extension[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_can_disable_permessage_deflate_extension[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________________ test_close_connection[H11Protocol-WSProtocol] ________________________________________________ > >pyfuncitem = <Function test_close_connection[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_close_connection[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_close_connection[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_close_connection[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_close_connection[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_close_connection[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________ test_close_connection[H11Protocol-WebSocketProtocol] _____________________________________________ > >pyfuncitem = <Function test_close_connection[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_close_connection[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_close_connection[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_close_connection[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_close_connection[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_close_connection[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________________ test_headers[H11Protocol-WSProtocol] _____________________________________________________ > >pyfuncitem = <Function test_headers[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_headers[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_headers[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_headers[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_headers[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_headers[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________ test_headers[H11Protocol-WebSocketProtocol] _________________________________________________ > >pyfuncitem = <Function test_headers[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_headers[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_headers[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_headers[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_headers[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_headers[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________ test_extra_headers[H11Protocol-WSProtocol] __________________________________________________ > >pyfuncitem = <Function test_extra_headers[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_extra_headers[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_extra_headers[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_extra_headers[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_extra_headers[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_extra_headers[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________ test_extra_headers[H11Protocol-WebSocketProtocol] ______________________________________________ > >pyfuncitem = <Function test_extra_headers[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_extra_headers[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_extra_headers[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_extra_headers[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_extra_headers[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_extra_headers[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________ test_path_and_raw_path[H11Protocol-WSProtocol] ________________________________________________ > >pyfuncitem = <Function test_path_and_raw_path[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_path_and_raw_path[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_path_and_raw_path[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_path_and_raw_path[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_path_and_raw_path[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_path_and_raw_path[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________ test_path_and_raw_path[H11Protocol-WebSocketProtocol] ____________________________________________ > >pyfuncitem = <Function test_path_and_raw_path[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_path_and_raw_path[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_path_and_raw_path[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_path_and_raw_path[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_path_and_raw_path[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_path_and_raw_path[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________ test_send_text_data_to_client[H11Protocol-WSProtocol] ____________________________________________ > >pyfuncitem = <Function test_send_text_data_to_client[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_text_data_to_client[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_text_data_to_client[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_text_data_to_client[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_text_data_to_client[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_text_data_to_client[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________ test_send_text_data_to_client[H11Protocol-WebSocketProtocol] _________________________________________ > >pyfuncitem = <Function test_send_text_data_to_client[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_text_data_to_client[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_text_data_to_client[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_text_data_to_client[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_text_data_to_client[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_text_data_to_client[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________ test_send_binary_data_to_client[H11Protocol-WSProtocol] ___________________________________________ > >pyfuncitem = <Function test_send_binary_data_to_client[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_client[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_client[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_binary_data_to_client[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_client[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_client[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________ test_send_binary_data_to_client[H11Protocol-WebSocketProtocol] ________________________________________ > >pyfuncitem = <Function test_send_binary_data_to_client[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_client[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_client[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_binary_data_to_client[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_client[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_client[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________ test_send_and_close_connection[H11Protocol-WSProtocol] ____________________________________________ > >pyfuncitem = <Function test_send_and_close_connection[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_and_close_connection[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_and_close_connection[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_and_close_connection[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_and_close_connection[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_and_close_connection[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________ test_send_and_close_connection[H11Protocol-WebSocketProtocol] ________________________________________ > >pyfuncitem = <Function test_send_and_close_connection[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_and_close_connection[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_and_close_connection[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_and_close_connection[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_and_close_connection[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_and_close_connection[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________ test_send_text_data_to_server[H11Protocol-WSProtocol] ____________________________________________ > >pyfuncitem = <Function test_send_text_data_to_server[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_text_data_to_server[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_text_data_to_server[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_text_data_to_server[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_text_data_to_server[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_text_data_to_server[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________ test_send_text_data_to_server[H11Protocol-WebSocketProtocol] _________________________________________ > >pyfuncitem = <Function test_send_text_data_to_server[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_text_data_to_server[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_text_data_to_server[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_text_data_to_server[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_text_data_to_server[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_text_data_to_server[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________ test_send_binary_data_to_server[H11Protocol-WSProtocol] ___________________________________________ > >pyfuncitem = <Function test_send_binary_data_to_server[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_binary_data_to_server[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________ test_send_binary_data_to_server[H11Protocol-WebSocketProtocol] ________________________________________ > >pyfuncitem = <Function test_send_binary_data_to_server[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_binary_data_to_server[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________ test_send_after_protocol_close[H11Protocol-WSProtocol] ____________________________________________ > >pyfuncitem = <Function test_send_after_protocol_close[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_after_protocol_close[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_after_protocol_close[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_after_protocol_close[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_after_protocol_close[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_after_protocol_close[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________ test_send_after_protocol_close[H11Protocol-WebSocketProtocol] ________________________________________ > >pyfuncitem = <Function test_send_after_protocol_close[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_after_protocol_close[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_after_protocol_close[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_after_protocol_close[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_after_protocol_close[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_after_protocol_close[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________ test_missing_handshake[H11Protocol-WSProtocol] ________________________________________________ > >pyfuncitem = <Function test_missing_handshake[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_missing_handshake[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_missing_handshake[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_missing_handshake[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_missing_handshake[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_missing_handshake[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________ test_missing_handshake[H11Protocol-WebSocketProtocol] ____________________________________________ > >pyfuncitem = <Function test_missing_handshake[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_missing_handshake[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_missing_handshake[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_missing_handshake[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_missing_handshake[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_missing_handshake[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________ test_send_before_handshake[H11Protocol-WSProtocol] ______________________________________________ > >pyfuncitem = <Function test_send_before_handshake[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_before_handshake[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_before_handshake[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_before_handshake[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_before_handshake[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_before_handshake[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________ test_send_before_handshake[H11Protocol-WebSocketProtocol] __________________________________________ > >pyfuncitem = <Function test_send_before_handshake[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_before_handshake[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_before_handshake[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_before_handshake[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_before_handshake[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_before_handshake[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________ test_duplicate_handshake[H11Protocol-WSProtocol] _______________________________________________ > >pyfuncitem = <Function test_duplicate_handshake[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_duplicate_handshake[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_duplicate_handshake[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_duplicate_handshake[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_duplicate_handshake[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_duplicate_handshake[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________ test_duplicate_handshake[H11Protocol-WebSocketProtocol] ___________________________________________ > >pyfuncitem = <Function test_duplicate_handshake[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_duplicate_handshake[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_duplicate_handshake[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_duplicate_handshake[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_duplicate_handshake[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_duplicate_handshake[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________ test_asgi_return_value[H11Protocol-WSProtocol] ________________________________________________ > >pyfuncitem = <Function test_asgi_return_value[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_asgi_return_value[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_asgi_return_value[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_asgi_return_value[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_asgi_return_value[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_asgi_return_value[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________ test_asgi_return_value[H11Protocol-WebSocketProtocol] ____________________________________________ > >pyfuncitem = <Function test_asgi_return_value[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_asgi_return_value[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_asgi_return_value[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_asgi_return_value[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_asgi_return_value[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_asgi_return_value[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_app_close[none_as_reason-None-H11Protocol-WSProtocol] __________________________________________ > >pyfuncitem = <Function test_app_close[none_as_reason-None-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-None-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-None-H11Protocol-WSProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[none_as_reason-None-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-None-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-None-H11Protocol-WSProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_app_close[none_as_reason-None-H11Protocol-WebSocketProtocol] ______________________________________ > >pyfuncitem = <Function test_app_close[none_as_reason-None-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-None-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-None-H11Protocol-WebSocketProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[none_as_reason-None-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-None-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-None-H11Protocol-WebSocketProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_app_close[none_as_reason-1000-H11Protocol-WSProtocol] __________________________________________ > >pyfuncitem = <Function test_app_close[none_as_reason-1000-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-1000-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-1000-H11Protocol-WSProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[none_as_reason-1000-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-1000-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-1000-H11Protocol-WSProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_app_close[none_as_reason-1000-H11Protocol-WebSocketProtocol] ______________________________________ > >pyfuncitem = <Function test_app_close[none_as_reason-1000-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-1000-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-1000-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[none_as_reason-1000-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-1000-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-1000-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_app_close[none_as_reason-1001-H11Protocol-WSProtocol] __________________________________________ > >pyfuncitem = <Function test_app_close[none_as_reason-1001-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-1001-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-1001-H11Protocol-WSProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[none_as_reason-1001-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-1001-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-1001-H11Protocol-WSProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_app_close[none_as_reason-1001-H11Protocol-WebSocketProtocol] ______________________________________ > >pyfuncitem = <Function test_app_close[none_as_reason-1001-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-1001-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-1001-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[none_as_reason-1001-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'request': <FixtureRequest for <Function test_app_close[none_as_reason-1001-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[none_as_reason-1001-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': None, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________ test_app_close[normal_reason-None-H11Protocol-WSProtocol] __________________________________________ > >pyfuncitem = <Function test_app_close[normal_reason-None-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-None-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-None-H11Protocol-WSProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[normal_reason-None-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-None-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-None-H11Protocol-WSProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_app_close[normal_reason-None-H11Protocol-WebSocketProtocol] _______________________________________ > >pyfuncitem = <Function test_app_close[normal_reason-None-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-None-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-None-H11Protocol-WebSocketProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[normal_reason-None-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-None-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-None-H11Protocol-WebSocketProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________ test_app_close[normal_reason-1000-H11Protocol-WSProtocol] __________________________________________ > >pyfuncitem = <Function test_app_close[normal_reason-1000-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-1000-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-1000-H11Protocol-WSProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[normal_reason-1000-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-1000-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-1000-H11Protocol-WSProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_app_close[normal_reason-1000-H11Protocol-WebSocketProtocol] _______________________________________ > >pyfuncitem = <Function test_app_close[normal_reason-1000-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-1000-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-1000-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[normal_reason-1000-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-1000-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-1000-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________ test_app_close[normal_reason-1001-H11Protocol-WSProtocol] __________________________________________ > >pyfuncitem = <Function test_app_close[normal_reason-1001-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-1001-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-1001-H11Protocol-WSProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[normal_reason-1001-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-1001-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-1001-H11Protocol-WSProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_app_close[normal_reason-1001-H11Protocol-WebSocketProtocol] _______________________________________ > >pyfuncitem = <Function test_app_close[normal_reason-1001-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-1001-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-1001-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[normal_reason-1001-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'request': <FixtureRequest for <Function test_app_close[normal_reason-1001-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[normal_reason-1001-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': 'test', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_app_close[without_reason-None-H11Protocol-WSProtocol] __________________________________________ > >pyfuncitem = <Function test_app_close[without_reason-None-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-None-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-None-H11Protocol-WSProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[without_reason-None-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-None-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-None-H11Protocol-WSProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_app_close[without_reason-None-H11Protocol-WebSocketProtocol] ______________________________________ > >pyfuncitem = <Function test_app_close[without_reason-None-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-None-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-None-H11Protocol-WebSocketProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[without_reason-None-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-None-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-None-H11Protocol-WebSocketProtocol]> >testargs = {'code': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_app_close[without_reason-1000-H11Protocol-WSProtocol] __________________________________________ > >pyfuncitem = <Function test_app_close[without_reason-1000-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-1000-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-1000-H11Protocol-WSProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[without_reason-1000-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-1000-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-1000-H11Protocol-WSProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_app_close[without_reason-1000-H11Protocol-WebSocketProtocol] ______________________________________ > >pyfuncitem = <Function test_app_close[without_reason-1000-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-1000-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-1000-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[without_reason-1000-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1000, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-1000-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-1000-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1000, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_app_close[without_reason-1001-H11Protocol-WSProtocol] __________________________________________ > >pyfuncitem = <Function test_app_close[without_reason-1001-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-1001-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-1001-H11Protocol-WSProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[without_reason-1001-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-1001-H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-1001-H11Protocol-WSProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_app_close[without_reason-1001-H11Protocol-WebSocketProtocol] ______________________________________ > >pyfuncitem = <Function test_app_close[without_reason-1001-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-1001-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-1001-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_app_close[without_reason-1001-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'code': 1001, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'request': <FixtureRequest for <Function test_app_close[without_reason-1001-H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_app_close[without_reason-1001-H11Protocol-WebSocketProtocol]> >testargs = {'code': 1001, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'reason': False, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >__________________________________________________ test_client_close[H11Protocol-WSProtocol] __________________________________________________ > >pyfuncitem = <Function test_client_close[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_client_close[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_client_close[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_client_close[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_client_close[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_client_close[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________ test_client_close[H11Protocol-WebSocketProtocol] _______________________________________________ > >pyfuncitem = <Function test_client_close[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_client_close[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_client_close[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_client_close[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_client_close[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_client_close[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________ test_client_connection_lost[H11Protocol-WSProtocol] _____________________________________________ > >pyfuncitem = <Function test_client_connection_lost[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_client_connection_lost[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_client_connection_lost[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_client_connection_lost[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_client_connection_lost[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_client_connection_lost[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_client_connection_lost[H11Protocol-WebSocketProtocol] __________________________________________ > >pyfuncitem = <Function test_client_connection_lost[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_client_connection_lost[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_client_connection_lost[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_client_connection_lost[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_client_connection_lost[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_client_connection_lost[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________ test_connection_lost_before_handshake_complete[H11Protocol-WSProtocol] ____________________________________ > >pyfuncitem = <Function test_connection_lost_before_handshake_complete[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_connection_lost_before_handshake_complete[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_connection_lost_before_handshake_complete[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_connection_lost_before_handshake_complete[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_connection_lost_before_handshake_complete[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_connection_lost_before_handshake_complete[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________ test_connection_lost_before_handshake_complete[H11Protocol-WebSocketProtocol] ________________________________ > >pyfuncitem = <Function test_connection_lost_before_handshake_complete[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_connection_lost_before_handshake_complete[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_connection_lost_before_handshake_complete[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_connection_lost_before_handshake_complete[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_connection_lost_before_handshake_complete[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_connection_lost_before_handshake_complete[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_send_close_on_server_shutdown[H11Protocol-WSProtocol] __________________________________________ > >pyfuncitem = <Function test_send_close_on_server_shutdown[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_close_on_server_shutdown[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_close_on_server_shutdown[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_close_on_server_shutdown[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_close_on_server_shutdown[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_send_close_on_server_shutdown[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________ test_send_close_on_server_shutdown[H11Protocol-WebSocketProtocol] ______________________________________ > >pyfuncitem = <Function test_send_close_on_server_shutdown[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_close_on_server_shutdown[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_close_on_server_shutdown[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_close_on_server_shutdown[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_close_on_server_shutdown[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_close_on_server_shutdown[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________ test_subprotocols[proto1-H11Protocol-WSProtocol] _______________________________________________ > >pyfuncitem = <Function test_subprotocols[proto1-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_subprotocols[proto1-H11Protocol-WSProtocol]>>, > 'subprotocol': 'proto1', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_subprotocols[proto1-H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'subprotocol': 'proto1', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_subprotocols[proto1-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_subprotocols[proto1-H11Protocol-WSProtocol]>>, > 'subprotocol': 'proto1', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_subprotocols[proto1-H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'subprotocol': 'proto1', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________ test_subprotocols[proto1-H11Protocol-WebSocketProtocol] ___________________________________________ > >pyfuncitem = <Function test_subprotocols[proto1-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_subprotocols[proto1-H11Protocol-WebSocketProtocol]>>, > 'subprotocol': 'proto1', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_subprotocols[proto1-H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'subprotocol': 'proto1', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_subprotocols[proto1-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_subprotocols[proto1-H11Protocol-WebSocketProtocol]>>, > 'subprotocol': 'proto1', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_subprotocols[proto1-H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'subprotocol': 'proto1', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________________________________ test_subprotocols[proto2-H11Protocol-WSProtocol] _______________________________________________ > >pyfuncitem = <Function test_subprotocols[proto2-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_subprotocols[proto2-H11Protocol-WSProtocol]>>, > 'subprotocol': 'proto2', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_subprotocols[proto2-H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'subprotocol': 'proto2', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_subprotocols[proto2-H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_subprotocols[proto2-H11Protocol-WSProtocol]>>, > 'subprotocol': 'proto2', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_subprotocols[proto2-H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'subprotocol': 'proto2', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >___________________________________________ test_subprotocols[proto2-H11Protocol-WebSocketProtocol] ___________________________________________ > >pyfuncitem = <Function test_subprotocols[proto2-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_subprotocols[proto2-H11Protocol-WebSocketProtocol]>>, > 'subprotocol': 'proto2', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_subprotocols[proto2-H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'subprotocol': 'proto2', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_subprotocols[proto2-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_subprotocols[proto2-H11Protocol-WebSocketProtocol]>>, > 'subprotocol': 'proto2', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_subprotocols[proto2-H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'subprotocol': 'proto2', > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________ test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults-H11Protocol-WebSocketProtocol] ________________ > >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'client_size_sent': 16777216, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_result': 0, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults-H11Protocol-WebSocketProtocol]>>, > 'server_size_max': 16777216, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults-H11Protocol-WebSocketProtocol]> >testargs = {'client_size_sent': 16777216, > 'expected_result': 0, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'server_size_max': 16777216, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'client_size_sent': 16777216, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_result': 0, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults-H11Protocol-WebSocketProtocol]>>, > 'server_size_max': 16777216, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults-H11Protocol-WebSocketProtocol]> >testargs = {'client_size_sent': 16777216, > 'expected_result': 0, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'server_size_max': 16777216, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________ test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults+1-H11Protocol-WebSocketProtocol] _______________ > >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults+1-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'client_size_sent': 16777217, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_result': 1009, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults+1-H11Protocol-WebSocketProtocol]>>, > 'server_size_max': 16777216, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults+1-H11Protocol-WebSocketProtocol]> >testargs = {'client_size_sent': 16777217, > 'expected_result': 1009, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'server_size_max': 16777216, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults+1-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'client_size_sent': 16777217, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_result': 1009, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults+1-H11Protocol-WebSocketProtocol]>>, > 'server_size_max': 16777216, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults+1-H11Protocol-WebSocketProtocol]> >testargs = {'client_size_sent': 16777217, > 'expected_result': 1009, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'server_size_max': 16777216, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________ test_send_binary_data_to_server_bigger_than_default[max=10 sent=10-H11Protocol-WebSocketProtocol] ______________________ > >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=10-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'client_size_sent': 10, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_result': 0, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=10-H11Protocol-WebSocketProtocol]>>, > 'server_size_max': 10, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=10-H11Protocol-WebSocketProtocol]> >testargs = {'client_size_sent': 10, > 'expected_result': 0, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'server_size_max': 10, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=10-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'client_size_sent': 10, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_result': 0, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=10-H11Protocol-WebSocketProtocol]>>, > 'server_size_max': 10, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=10-H11Protocol-WebSocketProtocol]> >testargs = {'client_size_sent': 10, > 'expected_result': 0, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'server_size_max': 10, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >______________________ test_send_binary_data_to_server_bigger_than_default[max=10 sent=11-H11Protocol-WebSocketProtocol] ______________________ > >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=11-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'client_size_sent': 11, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_result': 1009, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=11-H11Protocol-WebSocketProtocol]>>, > 'server_size_max': 10, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=11-H11Protocol-WebSocketProtocol]> >testargs = {'client_size_sent': 11, > 'expected_result': 1009, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'server_size_max': 10, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=11-H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'client_size_sent': 11, > 'django_db_blocker': None, > 'django_test_environment': None, > 'expected_result': 1009, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=11-H11Protocol-WebSocketProtocol]>>, > 'server_size_max': 10, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_send_binary_data_to_server_bigger_than_default[max=10 sent=11-H11Protocol-WebSocketProtocol]> >testargs = {'client_size_sent': 11, > 'expected_result': 1009, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'server_size_max': 10, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________ test_server_reject_connection[H11Protocol-WSProtocol] ____________________________________________ > >pyfuncitem = <Function test_server_reject_connection[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_server_reject_connection[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_server_reject_connection[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_server_reject_connection[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_server_reject_connection[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_server_reject_connection[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >________________________________________ test_server_reject_connection[H11Protocol-WebSocketProtocol] _________________________________________ > >pyfuncitem = <Function test_server_reject_connection[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_server_reject_connection[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_server_reject_connection[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_server_reject_connection[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_server_reject_connection[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_server_reject_connection[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________ test_server_can_read_messages_in_buffer_after_close[H11Protocol-WSProtocol] _________________________________ > >pyfuncitem = <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________ test_server_can_read_messages_in_buffer_after_close[H11Protocol-WebSocketProtocol] ______________________________ > >pyfuncitem = <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_server_can_read_messages_in_buffer_after_close[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________ test_default_server_headers[H11Protocol-WSProtocol] _____________________________________________ > >pyfuncitem = <Function test_default_server_headers[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_default_server_headers[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_default_server_headers[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_default_server_headers[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_default_server_headers[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_default_server_headers[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_default_server_headers[H11Protocol-WebSocketProtocol] __________________________________________ > >pyfuncitem = <Function test_default_server_headers[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_default_server_headers[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_default_server_headers[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_default_server_headers[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_default_server_headers[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_default_server_headers[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_______________________________________________ test_no_server_headers[H11Protocol-WSProtocol] ________________________________________________ > >pyfuncitem = <Function test_no_server_headers[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_no_server_headers[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_no_server_headers[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_no_server_headers[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_no_server_headers[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_no_server_headers[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >____________________________________________ test_no_server_headers[H11Protocol-WebSocketProtocol] ____________________________________________ > >pyfuncitem = <Function test_no_server_headers[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_no_server_headers[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_no_server_headers[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_no_server_headers[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_no_server_headers[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_no_server_headers[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________________ test_no_date_header[H11Protocol-WSProtocol] _________________________________________________ > >pyfuncitem = <Function test_no_date_header[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_no_date_header[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_no_date_header[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_no_date_header[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_no_date_header[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_no_date_header[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_____________________________________________ test_multiple_server_header[H11Protocol-WSProtocol] _____________________________________________ > >pyfuncitem = <Function test_multiple_server_header[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_multiple_server_header[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_multiple_server_header[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_multiple_server_header[H11Protocol-WSProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_multiple_server_header[H11Protocol-WSProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} >pyfuncitem = <Function test_multiple_server_header[H11Protocol-WSProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.wsproto_impl.WSProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >_________________________________________ test_multiple_server_header[H11Protocol-WebSocketProtocol] __________________________________________ > >pyfuncitem = <Function test_multiple_server_header[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: >> loop = funcargs["io_loop"] >E KeyError: 'io_loop' > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_multiple_server_header[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_multiple_server_header[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:49: KeyError > >During handling of the above exception, another exception occurred: > >pyfuncitem = <Function test_multiple_server_header[H11Protocol-WebSocketProtocol]> > > @pytest.mark.tryfirst > def pytest_pyfunc_call(pyfuncitem): > funcargs = pyfuncitem.funcargs > testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > > if not iscoroutinefunction(pyfuncitem.obj): > pyfuncitem.obj(**testargs) > return True > > try: > loop = funcargs["io_loop"] > except KeyError: >> loop = tornado.ioloop.IOLoop.current() > >funcargs = {'_dj_autoclear_mailbox': None, > '_django_clear_site_cache': None, > '_django_db_marker': None, > '_django_set_urlconf': None, > '_django_setup_unittest': None, > '_fail_for_invalid_template_variable': None, > '_live_server_helper': None, > '_template_string_if_invalid_marker': None, > 'django_db_blocker': None, > 'django_test_environment': None, > 'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'request': <FixtureRequest for <Function test_multiple_server_header[H11Protocol-WebSocketProtocol]>>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} >pyfuncitem = <Function test_multiple_server_header[H11Protocol-WebSocketProtocol]> >testargs = {'http_protocol_cls': <class 'uvicorn.protocols.http.h11_impl.H11Protocol'>, > 'ws_protocol_cls': <class 'uvicorn.protocols.websockets.websockets_impl.WebSocketProtocol'>} > >/usr/lib/python3.10/site-packages/pytest_tornasync/plugin.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.10/site-packages/tornado/ioloop.py:265: in current > loop = asyncio.get_event_loop() > instance = True >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > > def get_event_loop(self): > """Get the event loop for the current context. > > Returns an instance of EventLoop or raises an exception. > """ > if (self._local._loop is None and > not self._local._set_called and > threading.current_thread() is threading.main_thread()): > stacklevel = 2 > try: > f = sys._getframe(1) > except AttributeError: > pass > else: > while f: > module = f.f_globals.get('__name__') > if not (module == 'asyncio' or module.startswith('asyncio.')): > break > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: >> raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) >E RuntimeError: There is no current event loop in thread 'MainThread'. > >self = <uvloop.EventLoopPolicy object at 0x7f26ee89d270> > >/usr/lib/python3.10/asyncio/events.py:671: RuntimeError >============================================================== warnings summary =============================================================== >tests/test_auto_detection.py::test_http_auto > /usr/lib/python3.10/site-packages/tornado/ioloop.py:265: DeprecationWarning: There is no current event loop > loop = asyncio.get_event_loop() > >-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html >=========================================================== short test summary info =========================================================== >SKIPPED [1] tests/protocols/test_http.py:882: httptools is not installed >SKIPPED [1] tests/protocols/test_http.py:912: httptools is not installed >FAILED tests/test_default_headers.py::test_default_default_headers - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_default_headers.py::test_override_server_header - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_default_headers.py::test_disable_default_server_header - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_default_headers.py::test_override_server_header_multiple_times - RuntimeError: There is no current event loop in thread 'M... >FAILED tests/test_default_headers.py::test_add_additional_header - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_default_headers.py::test_disable_default_date_header - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_main.py::test_return_close_header - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_main.py::test_run[default] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_main.py::test_run[hostname] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_main.py::test_run[ipv6] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_main.py::test_run_multiprocess - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_main.py::test_run_reload - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_ssl.py::test_run - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_ssl.py::test_run_chain - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_ssl.py::test_run_chain_only - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/test_ssl.py::test_run_password - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_logging.py::test_trace_logging - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_logging.py::test_trace_logging_on_http_protocol[H11Protocol] - RuntimeError: There is no current event loop in ... >FAILED tests/middleware/test_logging.py::test_trace_logging_on_ws_protocol[websockets] - RuntimeError: There is no current event loop in thr... >FAILED tests/middleware/test_logging.py::test_trace_logging_on_ws_protocol[wsproto] - RuntimeError: There is no current event loop in thread... >FAILED tests/middleware/test_logging.py::test_access_logging[True] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_logging.py::test_access_logging[False] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_logging.py::test_access_logging[None] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_logging.py::test_default_logging[True] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_logging.py::test_default_logging[False] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_logging.py::test_running_log_using_uds - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_logging.py::test_running_log_using_fd - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_logging.py::test_unknown_status_code - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_logging.py::test_server_start_with_port_zero - RuntimeError: There is no current event loop in thread 'MainThre... >FAILED tests/middleware/test_message_logger.py::test_message_logger - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_message_logger.py::test_message_logger_exc - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[*-Remote: https://1.2.3.4:0] - RuntimeError: There is no cur... >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[127.0.0.1-Remote: https://1.2.3.4:0] - RuntimeError: There i... >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[trusted_hosts2-Remote: https://1.2.3.4:0] - RuntimeError: Th... >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[trusted_hosts3-Remote: https://1.2.3.4:0] - RuntimeError: Th... >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[127.0.0.1, 10.0.0.1-Remote: https://1.2.3.4:0] - RuntimeErro... >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_trusted_hosts[192.168.0.1-Remote: http://127.0.0.1:123] - RuntimeError: Th... >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_multiple_proxies[*-Remote: https://1.2.3.4:0] - RuntimeError: There is no ... >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_multiple_proxies[trusted_hosts1-Remote: https://1.2.3.4:0] - RuntimeError:... >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_multiple_proxies[trusted_hosts2-Remote: https://1.2.3.4:0] - RuntimeError:... >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_multiple_proxies[trusted_hosts3-Remote: https://10.0.2.1:0] - RuntimeError... >FAILED tests/middleware/test_proxy_headers.py::test_proxy_headers_invalid_x_forwarded_for - RuntimeError: There is no current event loop in ... >FAILED tests/middleware/test_wsgi.py::test_wsgi_get - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_wsgi.py::test_wsgi_post - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_wsgi.py::test_wsgi_put_more_body - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_wsgi.py::test_wsgi_exception - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/middleware/test_wsgi.py::test_wsgi_exc_info - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_get_request[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_request_logging[H11Protocol-/] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_request_logging[H11Protocol-/?foo] - RuntimeError: There is no current event loop in thread 'MainT... >FAILED tests/protocols/test_http.py::test_request_logging[H11Protocol-/?foo=bar] - RuntimeError: There is no current event loop in thread 'M... >FAILED tests/protocols/test_http.py::test_request_logging[H11Protocol-/?foo=bar&baz=1] - RuntimeError: There is no current event loop in thr... >FAILED tests/protocols/test_http.py::test_head_request[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_post_request[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_keepalive[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_keepalive_timeout[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_close[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_chunked_encoding[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_chunked_encoding_empty_body[H11Protocol] - RuntimeError: There is no current event loop in thread ... >FAILED tests/protocols/test_http.py::test_chunked_encoding_head_request[H11Protocol] - RuntimeError: There is no current event loop in threa... >FAILED tests/protocols/test_http.py::test_pipelined_requests[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThre... >FAILED tests/protocols/test_http.py::test_undersized_request[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThre... >FAILED tests/protocols/test_http.py::test_oversized_request[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_large_post_request[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThre... >FAILED tests/protocols/test_http.py::test_invalid_http[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_app_exception[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_exception_during_response[H11Protocol] - RuntimeError: There is no current event loop in thread 'M... >FAILED tests/protocols/test_http.py::test_no_response_returned[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainTh... >FAILED tests/protocols/test_http.py::test_partial_response_returned[H11Protocol] - RuntimeError: There is no current event loop in thread 'M... >FAILED tests/protocols/test_http.py::test_duplicate_start_message[H11Protocol] - RuntimeError: There is no current event loop in thread 'Mai... >FAILED tests/protocols/test_http.py::test_missing_start_message[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainT... >FAILED tests/protocols/test_http.py::test_message_after_body_complete[H11Protocol] - RuntimeError: There is no current event loop in thread ... >FAILED tests/protocols/test_http.py::test_value_returned[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_early_disconnect[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_early_response[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_read_after_response[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThr... >FAILED tests/protocols/test_http.py::test_http10_request[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_root_path[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_raw_path[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_max_concurrency[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainThread'. >FAILED tests/protocols/test_http.py::test_shutdown_during_request[H11Protocol] - RuntimeError: There is no current event loop in thread 'Mai... >FAILED tests/protocols/test_http.py::test_shutdown_during_idle[H11Protocol] - RuntimeError: There is no current event loop in thread 'MainTh... >FAILED tests/protocols/test_http.py::test_100_continue_sent_when_body_consumed[H11Protocol] - RuntimeError: There is no current event loop i... >FAILED tests/protocols/test_http.py::test_100_continue_not_sent_when_body_not_consumed[H11Protocol] - RuntimeError: There is no current even... >FAILED tests/protocols/test_http.py::test_supported_upgrade_request[H11Protocol] - RuntimeError: There is no current event loop in thread 'M... >FAILED tests/protocols/test_http.py::test_unsupported_ws_upgrade_request[H11Protocol] - RuntimeError: There is no current event loop in thre... >FAILED tests/protocols/test_http.py::test_unsupported_ws_upgrade_request_warn_on_auto[H11Protocol] - RuntimeError: There is no current event... >FAILED tests/protocols/test_http.py::test_http2_upgrade_request[auto-H11Protocol] - RuntimeError: There is no current event loop in thread '... >FAILED tests/protocols/test_http.py::test_http2_upgrade_request[none-H11Protocol] - RuntimeError: There is no current event loop in thread '... >FAILED tests/protocols/test_http.py::test_http2_upgrade_request[websockets-H11Protocol] - RuntimeError: There is no current event loop in th... >FAILED tests/protocols/test_http.py::test_http2_upgrade_request[wsproto-H11Protocol] - RuntimeError: There is no current event loop in threa... >FAILED tests/protocols/test_http.py::test_scopes[H11Protocol-asgi3app-expected_scopes0] - RuntimeError: There is no current event loop in th... >FAILED tests/protocols/test_http.py::test_scopes[H11Protocol-asgi2app-expected_scopes1] - RuntimeError: There is no current event loop in th... >FAILED tests/protocols/test_http.py::test_invalid_http_request[H11Protocol-invalid-method] - RuntimeError: There is no current event loop in... >FAILED tests/protocols/test_http.py::test_invalid_http_request[H11Protocol-invalid-path] - RuntimeError: There is no current event loop in t... >FAILED tests/protocols/test_http.py::test_invalid_http_request[H11Protocol-invalid-http-version] - RuntimeError: There is no current event l... >FAILED tests/protocols/test_http.py::test_huge_headers_h11protocol_failure - RuntimeError: There is no current event loop in thread 'MainThr... >FAILED tests/protocols/test_http.py::test_huge_headers_h11protocol_failure_with_setting - RuntimeError: There is no current event loop in th... >FAILED tests/protocols/test_http.py::test_huge_headers_h11_max_incomplete - RuntimeError: There is no current event loop in thread 'MainThre... >FAILED tests/protocols/test_websocket.py::test_invalid_upgrade[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in thr... >FAILED tests/protocols/test_websocket.py::test_invalid_upgrade[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event loop... >FAILED tests/protocols/test_websocket.py::test_accept_connection[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in t... >FAILED tests/protocols/test_websocket.py::test_accept_connection[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event lo... >FAILED tests/protocols/test_websocket.py::test_supports_permessage_deflate_extension[H11Protocol-WSProtocol] - RuntimeError: There is no cur... >FAILED tests/protocols/test_websocket.py::test_supports_permessage_deflate_extension[H11Protocol-WebSocketProtocol] - RuntimeError: There is... >FAILED tests/protocols/test_websocket.py::test_can_disable_permessage_deflate_extension[H11Protocol-WSProtocol] - RuntimeError: There is no ... >FAILED tests/protocols/test_websocket.py::test_can_disable_permessage_deflate_extension[H11Protocol-WebSocketProtocol] - RuntimeError: There... >FAILED tests/protocols/test_websocket.py::test_close_connection[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in th... >FAILED tests/protocols/test_websocket.py::test_close_connection[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event loo... >FAILED tests/protocols/test_websocket.py::test_headers[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in thread 'Mai... >FAILED tests/protocols/test_websocket.py::test_headers[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event loop in thre... >FAILED tests/protocols/test_websocket.py::test_extra_headers[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in threa... >FAILED tests/protocols/test_websocket.py::test_extra_headers[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event loop i... >FAILED tests/protocols/test_websocket.py::test_path_and_raw_path[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in t... >FAILED tests/protocols/test_websocket.py::test_path_and_raw_path[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event lo... >FAILED tests/protocols/test_websocket.py::test_send_text_data_to_client[H11Protocol-WSProtocol] - RuntimeError: There is no current event lo... >FAILED tests/protocols/test_websocket.py::test_send_text_data_to_client[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current e... >FAILED tests/protocols/test_websocket.py::test_send_binary_data_to_client[H11Protocol-WSProtocol] - RuntimeError: There is no current event ... >FAILED tests/protocols/test_websocket.py::test_send_binary_data_to_client[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current... >FAILED tests/protocols/test_websocket.py::test_send_and_close_connection[H11Protocol-WSProtocol] - RuntimeError: There is no current event l... >FAILED tests/protocols/test_websocket.py::test_send_and_close_connection[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current ... >FAILED tests/protocols/test_websocket.py::test_send_text_data_to_server[H11Protocol-WSProtocol] - RuntimeError: There is no current event lo... >FAILED tests/protocols/test_websocket.py::test_send_text_data_to_server[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current e... >FAILED tests/protocols/test_websocket.py::test_send_binary_data_to_server[H11Protocol-WSProtocol] - RuntimeError: There is no current event ... >FAILED tests/protocols/test_websocket.py::test_send_binary_data_to_server[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current... >FAILED tests/protocols/test_websocket.py::test_send_after_protocol_close[H11Protocol-WSProtocol] - RuntimeError: There is no current event l... >FAILED tests/protocols/test_websocket.py::test_send_after_protocol_close[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current ... >FAILED tests/protocols/test_websocket.py::test_missing_handshake[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in t... >FAILED tests/protocols/test_websocket.py::test_missing_handshake[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event lo... >FAILED tests/protocols/test_websocket.py::test_send_before_handshake[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop ... >FAILED tests/protocols/test_websocket.py::test_send_before_handshake[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current even... >FAILED tests/protocols/test_websocket.py::test_duplicate_handshake[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in... >FAILED tests/protocols/test_websocket.py::test_duplicate_handshake[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event ... >FAILED tests/protocols/test_websocket.py::test_asgi_return_value[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in t... >FAILED tests/protocols/test_websocket.py::test_asgi_return_value[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event lo... >FAILED tests/protocols/test_websocket.py::test_app_close[none_as_reason-None-H11Protocol-WSProtocol] - RuntimeError: There is no current eve... >FAILED tests/protocols/test_websocket.py::test_app_close[none_as_reason-None-H11Protocol-WebSocketProtocol] - RuntimeError: There is no curr... >FAILED tests/protocols/test_websocket.py::test_app_close[none_as_reason-1000-H11Protocol-WSProtocol] - RuntimeError: There is no current eve... >FAILED tests/protocols/test_websocket.py::test_app_close[none_as_reason-1000-H11Protocol-WebSocketProtocol] - RuntimeError: There is no curr... >FAILED tests/protocols/test_websocket.py::test_app_close[none_as_reason-1001-H11Protocol-WSProtocol] - RuntimeError: There is no current eve... >FAILED tests/protocols/test_websocket.py::test_app_close[none_as_reason-1001-H11Protocol-WebSocketProtocol] - RuntimeError: There is no curr... >FAILED tests/protocols/test_websocket.py::test_app_close[normal_reason-None-H11Protocol-WSProtocol] - RuntimeError: There is no current even... >FAILED tests/protocols/test_websocket.py::test_app_close[normal_reason-None-H11Protocol-WebSocketProtocol] - RuntimeError: There is no curre... >FAILED tests/protocols/test_websocket.py::test_app_close[normal_reason-1000-H11Protocol-WSProtocol] - RuntimeError: There is no current even... >FAILED tests/protocols/test_websocket.py::test_app_close[normal_reason-1000-H11Protocol-WebSocketProtocol] - RuntimeError: There is no curre... >FAILED tests/protocols/test_websocket.py::test_app_close[normal_reason-1001-H11Protocol-WSProtocol] - RuntimeError: There is no current even... >FAILED tests/protocols/test_websocket.py::test_app_close[normal_reason-1001-H11Protocol-WebSocketProtocol] - RuntimeError: There is no curre... >FAILED tests/protocols/test_websocket.py::test_app_close[without_reason-None-H11Protocol-WSProtocol] - RuntimeError: There is no current eve... >FAILED tests/protocols/test_websocket.py::test_app_close[without_reason-None-H11Protocol-WebSocketProtocol] - RuntimeError: There is no curr... >FAILED tests/protocols/test_websocket.py::test_app_close[without_reason-1000-H11Protocol-WSProtocol] - RuntimeError: There is no current eve... >FAILED tests/protocols/test_websocket.py::test_app_close[without_reason-1000-H11Protocol-WebSocketProtocol] - RuntimeError: There is no curr... >FAILED tests/protocols/test_websocket.py::test_app_close[without_reason-1001-H11Protocol-WSProtocol] - RuntimeError: There is no current eve... >FAILED tests/protocols/test_websocket.py::test_app_close[without_reason-1001-H11Protocol-WebSocketProtocol] - RuntimeError: There is no curr... >FAILED tests/protocols/test_websocket.py::test_client_close[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in thread... >FAILED tests/protocols/test_websocket.py::test_client_close[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event loop in... >FAILED tests/protocols/test_websocket.py::test_client_connection_lost[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop... >FAILED tests/protocols/test_websocket.py::test_client_connection_lost[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current eve... >FAILED tests/protocols/test_websocket.py::test_connection_lost_before_handshake_complete[H11Protocol-WSProtocol] - RuntimeError: There is no... >FAILED tests/protocols/test_websocket.py::test_connection_lost_before_handshake_complete[H11Protocol-WebSocketProtocol] - RuntimeError: Ther... >FAILED tests/protocols/test_websocket.py::test_send_close_on_server_shutdown[H11Protocol-WSProtocol] - RuntimeError: There is no current eve... >FAILED tests/protocols/test_websocket.py::test_send_close_on_server_shutdown[H11Protocol-WebSocketProtocol] - RuntimeError: There is no curr... >FAILED tests/protocols/test_websocket.py::test_subprotocols[proto1-H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in... >FAILED tests/protocols/test_websocket.py::test_subprotocols[proto1-H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event ... >FAILED tests/protocols/test_websocket.py::test_subprotocols[proto2-H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in... >FAILED tests/protocols/test_websocket.py::test_subprotocols[proto2-H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event ... >FAILED tests/protocols/test_websocket.py::test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults-H11Protocol-WebSocketProtocol] >FAILED tests/protocols/test_websocket.py::test_send_binary_data_to_server_bigger_than_default[max=defaults sent=defaults+1-H11Protocol-WebSocketProtocol] >FAILED tests/protocols/test_websocket.py::test_send_binary_data_to_server_bigger_than_default[max=10 sent=10-H11Protocol-WebSocketProtocol] >FAILED tests/protocols/test_websocket.py::test_send_binary_data_to_server_bigger_than_default[max=10 sent=11-H11Protocol-WebSocketProtocol] >FAILED tests/protocols/test_websocket.py::test_server_reject_connection[H11Protocol-WSProtocol] - RuntimeError: There is no current event lo... >FAILED tests/protocols/test_websocket.py::test_server_reject_connection[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current e... >FAILED tests/protocols/test_websocket.py::test_server_can_read_messages_in_buffer_after_close[H11Protocol-WSProtocol] - RuntimeError: There ... >FAILED tests/protocols/test_websocket.py::test_server_can_read_messages_in_buffer_after_close[H11Protocol-WebSocketProtocol] - RuntimeError:... >FAILED tests/protocols/test_websocket.py::test_default_server_headers[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop... >FAILED tests/protocols/test_websocket.py::test_default_server_headers[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current eve... >FAILED tests/protocols/test_websocket.py::test_no_server_headers[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in t... >FAILED tests/protocols/test_websocket.py::test_no_server_headers[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current event lo... >FAILED tests/protocols/test_websocket.py::test_no_date_header[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop in thre... >FAILED tests/protocols/test_websocket.py::test_multiple_server_header[H11Protocol-WSProtocol] - RuntimeError: There is no current event loop... >FAILED tests/protocols/test_websocket.py::test_multiple_server_header[H11Protocol-WebSocketProtocol] - RuntimeError: There is no current eve... >===================================== 180 failed, 97 passed, 2 skipped, 3 deselected, 1 warning in 10.49s ===================================== >pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'. > * ERROR: dev-python/uvicorn-0.20.0::gentoo failed (test phase): > * pytest failed with python3.10 > * > * Call stack: > * ebuild.sh, line 136: Called src_test > * environment, line 3474: Called distutils-r1_src_test > * environment, line 1644: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 754: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 3150: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2642: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2640: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 1075: Called distutils-r1_run_phase 'python_test' > * environment, line 1567: Called python_test > * environment, line 3441: Called epytest > * environment, line 2147: Called die > * The specific snippet of code: > * "${@}" || die -n "pytest failed with ${EPYTHON}"; > * > * If you need support, post the output of `emerge --info '=dev-python/uvicorn-0.20.0::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/uvicorn-0.20.0::gentoo'`. > * The complete build log is located at '/var/log/portage/dev-python:uvicorn-0.20.0:20230219-204127.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/uvicorn-0.20.0/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0' > * S: '/var/tmp/portage/dev-python/uvicorn-0.20.0/work/uvicorn-0.20.0'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 895486
: 853140 |
853142