* Package: dev-python/requests-2.23.0  * Repository: gentoo  * Maintainer: python@gentoo.org  * USE: elibc_glibc hppa kernel_linux python_targets_python2_7 python_targets_python3_6 ssl test userland_GNU  * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking requests-2.23.0.tar.gz to /var/tmp/portage/dev-python/requests-2.23.0/work >>> Source unpacked in /var/tmp/portage/dev-python/requests-2.23.0/work >>> Preparing source in /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0 ... * python2_7: running distutils-r1_run_phase distutils-r1_python_compile python2.7 setup.py build running build running build_py creating /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/cookies.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/sessions.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/help.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/hooks.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/packages.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/compat.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/_internal_utils.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/__init__.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/status_codes.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/utils.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/structures.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/exceptions.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/auth.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/models.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/__version__.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/api.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/adapters.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests copying requests/certs.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python2_7/lib/requests running egg_info writing requirements to requests.egg-info/requires.txt writing requests.egg-info/PKG-INFO writing top-level names to requests.egg-info/top_level.txt writing dependency_links to requests.egg-info/dependency_links.txt reading manifest file 'requests.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'NOTICE' warning: no files found matching 'requirements.txt' writing manifest file 'requests.egg-info/SOURCES.txt' warning: build_py: byte-compiling is disabled, skipping. * python3_6: running distutils-r1_run_phase distutils-r1_python_compile python3.6 setup.py build -j 4 running build running build_py creating /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/cookies.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/sessions.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/help.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/hooks.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/packages.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/compat.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/_internal_utils.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/__init__.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/status_codes.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/utils.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/structures.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/exceptions.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/auth.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/models.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/__version__.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/api.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/adapters.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests copying requests/certs.py -> /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0-python3_6/lib/requests running egg_info writing requests.egg-info/PKG-INFO writing dependency_links to requests.egg-info/dependency_links.txt writing requirements to requests.egg-info/requires.txt writing top-level names to requests.egg-info/top_level.txt reading manifest file 'requests.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'NOTICE' warning: no files found matching 'requirements.txt' writing manifest file 'requests.egg-info/SOURCES.txt' warning: build_py: byte-compiling is disabled, skipping. >>> Source compiled. >>> Test phase: dev-python/requests-2.23.0 * python2_7: running distutils-r1_run_phase python_test ========================================================================================================================= test session starts ========================================================================================================================== platform linux2 -- Python 2.7.17, pytest-4.5.0, py-1.5.4, pluggy-0.13.1 -- /usr/bin/python2.7 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0/.hypothesis/examples') rootdir: /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0, inifile: pytest.ini plugins: httpbin-1.0.0, flaky-3.6.1, mock-1.11.2, xdist-1.23.2, forked-1.1.3, hypothesis-4.50.8 collecting ... collected 539 items tests/test_help.py::test_system_ssl PASSED [ 0%] tests/test_help.py::test_idna_without_version_attribute PASSED [ 0%] tests/test_help.py::test_idna_with_version_attribute PASSED [ 0%] tests/test_hooks.py::test_hooks[hook-ata] PASSED [ 0%] tests/test_hooks.py::test_hooks[hooks_list1-ta] PASSED [ 0%] tests/test_hooks.py::test_default_hooks PASSED [ 1%] tests/test_lowlevel.py::test_chunked_upload PASSED [ 1%] tests/test_lowlevel.py::test_digestauth_401_count_reset_on_redirect PASSED [ 1%] tests/test_lowlevel.py::test_digestauth_401_only_sent_once PASSED [ 1%] tests/test_lowlevel.py::test_digestauth_only_on_4xx PASSED [ 1%] tests/test_lowlevel.py::test_use_proxy_from_environment[http_proxy-http] PASSED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[https_proxy-https] PASSED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[all_proxy-http] PASSED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[all_proxy-https] PASSED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[HTTP_PROXY-http] PASSED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[HTTPS_PROXY-https] PASSED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[ALL_PROXY-http] PASSED [ 3%] tests/test_lowlevel.py::test_use_proxy_from_environment[ALL_PROXY-https] PASSED [ 3%] tests/test_lowlevel.py::test_redirect_rfc1808_to_non_ascii_location PASSED [ 3%] tests/test_lowlevel.py::test_fragment_not_sent_with_request PASSED [ 3%] tests/test_lowlevel.py::test_fragment_update_on_redirect PASSED [ 3%] tests/test_packages.py::test_can_access_urllib3_attribute PASSED [ 4%] tests/test_packages.py::test_can_access_idna_attribute PASSED [ 4%] tests/test_packages.py::test_can_access_chardet_attribute PASSED [ 4%] tests/test_requests.py::TestRequests::test_entry_points PASSED [ 4%] tests/test_requests.py::TestRequests::test_invalid_url[MissingSchema-hiwpefhipowhefopw] PASSED [ 4%] tests/test_requests.py::TestRequests::test_invalid_url[InvalidSchema-localhost:3128] PASSED [ 5%] tests/test_requests.py::TestRequests::test_invalid_url[InvalidSchema-localhost.localdomain:3128/] PASSED [ 5%] tests/test_requests.py::TestRequests::test_invalid_url[InvalidSchema-10.122.1.1:3128/] PASSED [ 5%] tests/test_requests.py::TestRequests::test_invalid_url[InvalidURL-http://] PASSED [ 5%] tests/test_requests.py::TestRequests::test_basic_building PASSED [ 5%] tests/test_requests.py::TestRequests::test_no_content_length[GET] PASSED [ 5%] tests/test_requests.py::TestRequests::test_no_content_length[HEAD] PASSED [ 6%] tests/test_requests.py::TestRequests::test_no_body_content_length[POST] PASSED [ 6%] tests/test_requests.py::TestRequests::test_no_body_content_length[PUT] PASSED [ 6%] tests/test_requests.py::TestRequests::test_no_body_content_length[PATCH] PASSED [ 6%] tests/test_requests.py::TestRequests::test_no_body_content_length[OPTIONS] PASSED [ 6%] tests/test_requests.py::TestRequests::test_empty_content_length[POST] PASSED [ 7%] tests/test_requests.py::TestRequests::test_empty_content_length[PUT] PASSED [ 7%] tests/test_requests.py::TestRequests::test_empty_content_length[PATCH] PASSED [ 7%] tests/test_requests.py::TestRequests::test_empty_content_length[OPTIONS] PASSED [ 7%] tests/test_requests.py::TestRequests::test_override_content_length PASSED [ 7%] tests/test_requests.py::TestRequests::test_path_is_not_double_encoded PASSED [ 7%] tests/test_requests.py::TestRequests::test_params_are_added_before_fragment[http://example.com/path#fragment-http://example.com/path?a=b#fragment] PASSED [ 8%] tests/test_requests.py::TestRequests::test_params_are_added_before_fragment[http://example.com/path?key=value#fragment-http://example.com/path?key=value&a=b#fragment] PASSED [ 8%] tests/test_requests.py::TestRequests::test_params_original_order_is_preserved_by_default PASSED [ 8%] tests/test_requests.py::TestRequests::test_params_bytes_are_encoded PASSED [ 8%] tests/test_requests.py::TestRequests::test_binary_put PASSED [ 8%] tests/test_requests.py::TestRequests::test_whitespaces_are_removed_from_url PASSED [ 9%] tests/test_requests.py::TestRequests::test_mixed_case_scheme_acceptable[http://] PASSED [ 9%] tests/test_requests.py::TestRequests::test_mixed_case_scheme_acceptable[HTTP://] PASSED [ 9%] tests/test_requests.py::TestRequests::test_mixed_case_scheme_acceptable[hTTp://] PASSED [ 9%] tests/test_requests.py::TestRequests::test_mixed_case_scheme_acceptable[HttP://] PASSED [ 9%] tests/test_requests.py::TestRequests::test_HTTP_200_OK_GET_ALTERNATIVE PASSED [ 10%] tests/test_requests.py::TestRequests::test_HTTP_302_ALLOW_REDIRECT_GET PASSED [ 10%] tests/test_requests.py::TestRequests::test_HTTP_307_ALLOW_REDIRECT_POST PASSED [ 10%] tests/test_requests.py::TestRequests::test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE PASSED [ 10%] tests/test_requests.py::TestRequests::test_HTTP_302_TOO_MANY_REDIRECTS PASSED [ 10%] tests/test_requests.py::TestRequests::test_HTTP_302_TOO_MANY_REDIRECTS_WITH_PARAMS PASSED [ 10%] tests/test_requests.py::TestRequests::test_http_301_changes_post_to_get PASSED [ 11%] tests/test_requests.py::TestRequests::test_http_301_doesnt_change_head_to_get PASSED [ 11%] tests/test_requests.py::TestRequests::test_http_302_changes_post_to_get PASSED [ 11%] tests/test_requests.py::TestRequests::test_http_302_doesnt_change_head_to_get PASSED [ 11%] tests/test_requests.py::TestRequests::test_http_303_changes_post_to_get PASSED [ 11%] tests/test_requests.py::TestRequests::test_http_303_doesnt_change_head_to_get PASSED [ 12%] tests/test_requests.py::TestRequests::test_header_and_body_removal_on_redirect PASSED [ 12%] tests/test_requests.py::TestRequests::test_transfer_enc_removal_on_redirect PASSED [ 12%] tests/test_requests.py::TestRequests::test_fragment_maintained_on_redirect PASSED [ 12%] tests/test_requests.py::TestRequests::test_HTTP_200_OK_GET_WITH_PARAMS PASSED [ 12%] tests/test_requests.py::TestRequests::test_HTTP_200_OK_GET_WITH_MIXED_PARAMS PASSED [ 12%] tests/test_requests.py::TestRequests::test_set_cookie_on_301 PASSED [ 13%] tests/test_requests.py::TestRequests::test_cookie_sent_on_redirect PASSED [ 13%] tests/test_requests.py::TestRequests::test_cookie_removed_on_expire PASSED [ 13%] tests/test_requests.py::TestRequests::test_cookie_quote_wrapped PASSED [ 13%] tests/test_requests.py::TestRequests::test_cookie_persists_via_api PASSED [ 13%] tests/test_requests.py::TestRequests::test_request_cookie_overrides_session_cookie PASSED [ 14%] tests/test_requests.py::TestRequests::test_request_cookies_not_persisted PASSED [ 14%] tests/test_requests.py::TestRequests::test_generic_cookiejar_works PASSED [ 14%] tests/test_requests.py::TestRequests::test_param_cookiejar_works PASSED [ 14%] tests/test_requests.py::TestRequests::test_cookielib_cookiejar_on_redirect PASSED [ 14%] tests/test_requests.py::TestRequests::test_requests_in_history_are_not_overridden PASSED [ 15%] tests/test_requests.py::TestRequests::test_history_is_always_a_list PASSED [ 15%] tests/test_requests.py::TestRequests::test_headers_on_session_with_None_are_not_sent PASSED [ 15%] tests/test_requests.py::TestRequests::test_headers_preserve_order PASSED [ 15%] tests/test_requests.py::TestRequests::test_user_agent_transfers[User-agent] PASSED [ 15%] tests/test_requests.py::TestRequests::test_user_agent_transfers[user-agent] PASSED [ 15%] tests/test_requests.py::TestRequests::test_HTTP_200_OK_HEAD PASSED [ 16%] tests/test_requests.py::TestRequests::test_HTTP_200_OK_PUT PASSED [ 16%] tests/test_requests.py::TestRequests::test_BASICAUTH_TUPLE_HTTP_200_OK_GET PASSED [ 16%] tests/test_requests.py::TestRequests::test_set_basicauth[user-pass] PASSED [ 16%] tests/test_requests.py::TestRequests::test_set_basicauth[\xd0\xb8\xd0\xbc\xd1\x8f-\xd0\xbf\xd0\xb0\xd1\x80\xd0\xbe\xd0\xbb\xd1\x8c] PASSED [ 16%] tests/test_requests.py::TestRequests::test_set_basicauth[42-42] PASSED [ 17%] tests/test_requests.py::TestRequests::test_set_basicauth[None-None] PASSED [ 17%] tests/test_requests.py::TestRequests::test_basicauth_encodes_byte_strings PASSED [ 17%] tests/test_requests.py::TestRequests::test_errors[http://doesnotexist.google.com-ConnectionError] PASSED [ 17%] tests/test_requests.py::TestRequests::test_errors[http://localhost:1-ConnectionError] PASSED [ 17%] tests/test_requests.py::TestRequests::test_errors[http://fe80::5054:ff:fe5a:fc0-InvalidURL] PASSED [ 17%] tests/test_requests.py::TestRequests::test_proxy_error PASSED [ 18%] tests/test_requests.py::TestRequests::test_proxy_error_on_bad_url PASSED [ 18%] tests/test_requests.py::TestRequests::test_basicauth_with_netrc PASSED [ 18%] tests/test_requests.py::TestRequests::test_DIGEST_HTTP_200_OK_GET PASSED [ 18%] tests/test_requests.py::TestRequests::test_DIGEST_AUTH_RETURNS_COOKIE PASSED [ 18%] tests/test_requests.py::TestRequests::test_DIGEST_AUTH_SETS_SESSION_COOKIES PASSED [ 19%] tests/test_requests.py::TestRequests::test_DIGEST_STREAM PASSED [ 19%] tests/test_requests.py::TestRequests::test_DIGESTAUTH_WRONG_HTTP_401_GET PASSED [ 19%] tests/test_requests.py::TestRequests::test_DIGESTAUTH_QUOTES_QOP_VALUE PASSED [ 19%] tests/test_requests.py::TestRequests::test_POSTBIN_GET_POST_FILES PASSED [ 19%] tests/test_requests.py::TestRequests::test_invalid_files_input PASSED [ 20%] tests/test_requests.py::TestRequests::test_POSTBIN_SEEKED_OBJECT_WITH_NO_ITER PASSED [ 20%] tests/test_requests.py::TestRequests::test_POSTBIN_GET_POST_FILES_WITH_DATA PASSED [ 20%] tests/test_requests.py::TestRequests::test_post_with_custom_mapping PASSED [ 20%] tests/test_requests.py::TestRequests::test_conflicting_post_params PASSED [ 20%] tests/test_requests.py::TestRequests::test_request_ok_set PASSED [ 20%] tests/test_requests.py::TestRequests::test_status_raising PASSED [ 21%] tests/test_requests.py::TestRequests::test_decompress_gzip PASSED [ 21%] tests/test_requests.py::TestRequests::test_unicode_get[/get-params0] PASSED [ 21%] tests/test_requests.py::TestRequests::test_unicode_get[/get-params1] PASSED [ 21%] tests/test_requests.py::TestRequests::test_unicode_get[/get-params2] PASSED [ 21%] tests/test_requests.py::TestRequests::test_unicode_get[/get-params3] PASSED [ 22%] tests/test_requests.py::TestRequests::test_unicode_get[\xc3\xb8-params4] PASSED [ 22%] tests/test_requests.py::TestRequests::test_unicode_header_name PASSED [ 22%] tests/test_requests.py::TestRequests::test_pyopenssl_redirect PASSED [ 22%] tests/test_requests.py::TestRequests::test_invalid_ca_certificate_path PASSED [ 22%] tests/test_requests.py::TestRequests::test_invalid_ssl_certificate_files PASSED [ 23%] tests/test_requests.py::TestRequests::test_http_with_certificate PASSED [ 23%] tests/test_requests.py::TestRequests::test_certificate_failure PASSED [ 23%] tests/test_requests.py::TestRequests::test_urlencoded_get_query_multivalued_param PASSED [ 23%] tests/test_requests.py::TestRequests::test_form_encoded_post_query_multivalued_element PASSED [ 23%] tests/test_requests.py::TestRequests::test_different_encodings_dont_break_post PASSED [ 23%] tests/test_requests.py::TestRequests::test_unicode_multipart_post[data0] PASSED [ 24%] tests/test_requests.py::TestRequests::test_unicode_multipart_post[data1] PASSED [ 24%] tests/test_requests.py::TestRequests::test_unicode_multipart_post[data2] PASSED [ 24%] tests/test_requests.py::TestRequests::test_unicode_multipart_post[data3] PASSED [ 24%] tests/test_requests.py::TestRequests::test_unicode_multipart_post_fieldnames PASSED [ 24%] tests/test_requests.py::TestRequests::test_unicode_method_name PASSED [ 25%] tests/test_requests.py::TestRequests::test_unicode_method_name_with_request_object PASSED [ 25%] tests/test_requests.py::TestRequests::test_non_prepared_request_error PASSED [ 25%] tests/test_requests.py::TestRequests::test_custom_content_type PASSED [ 25%] tests/test_requests.py::TestRequests::test_hook_receives_request_arguments PASSED [ 25%] tests/test_requests.py::TestRequests::test_session_hooks_are_used_with_no_request_hooks PASSED [ 25%] tests/test_requests.py::TestRequests::test_session_hooks_are_overridden_by_request_hooks PASSED [ 26%] tests/test_requests.py::TestRequests::test_prepared_request_hook PASSED [ 26%] tests/test_requests.py::TestRequests::test_prepared_from_session PASSED [ 26%] tests/test_requests.py::TestRequests::test_prepare_request_with_bytestring_url PASSED [ 26%] tests/test_requests.py::TestRequests::test_request_with_bytestring_host PASSED [ 26%] tests/test_requests.py::TestRequests::test_links PASSED [ 27%] tests/test_requests.py::TestRequests::test_cookie_parameters PASSED [ 27%] tests/test_requests.py::TestRequests::test_cookie_as_dict_keeps_len PASSED [ 27%] tests/test_requests.py::TestRequests::test_cookie_as_dict_keeps_items PASSED [ 27%] tests/test_requests.py::TestRequests::test_cookie_as_dict_keys PASSED [ 27%] tests/test_requests.py::TestRequests::test_cookie_as_dict_values PASSED [ 28%] tests/test_requests.py::TestRequests::test_cookie_as_dict_items PASSED [ 28%] tests/test_requests.py::TestRequests::test_cookie_duplicate_names_different_domains PASSED [ 28%] tests/test_requests.py::TestRequests::test_cookie_duplicate_names_raises_cookie_conflict_error PASSED [ 28%] tests/test_requests.py::TestRequests::test_cookie_policy_copy PASSED [ 28%] tests/test_requests.py::TestRequests::test_time_elapsed_blank PASSED [ 28%] tests/test_requests.py::TestRequests::test_empty_response_has_content_none PASSED [ 29%] tests/test_requests.py::TestRequests::test_response_is_iterable PASSED [ 29%] tests/test_requests.py::TestRequests::test_response_decode_unicode PASSED [ 29%] tests/test_requests.py::TestRequests::test_response_reason_unicode PASSED [ 29%] tests/test_requests.py::TestRequests::test_response_reason_unicode_fallback PASSED [ 29%] tests/test_requests.py::TestRequests::test_response_chunk_size_type PASSED [ 30%] tests/test_requests.py::TestRequests::test_request_and_response_are_pickleable PASSED [ 30%] tests/test_requests.py::TestRequests::test_prepared_request_is_pickleable PASSED [ 30%] tests/test_requests.py::TestRequests::test_prepared_request_with_file_is_pickleable PASSED [ 30%] tests/test_requests.py::TestRequests::test_prepared_request_with_hook_is_pickleable PASSED [ 30%] tests/test_requests.py::TestRequests::test_cannot_send_unprepared_requests PASSED [ 30%] tests/test_requests.py::TestRequests::test_http_error PASSED [ 31%] tests/test_requests.py::TestRequests::test_session_pickling PASSED [ 31%] tests/test_requests.py::TestRequests::test_fixes_1329 PASSED [ 31%] tests/test_requests.py::TestRequests::test_uppercase_scheme_redirect PASSED [ 31%] tests/test_requests.py::TestRequests::test_transport_adapter_ordering PASSED [ 31%] tests/test_requests.py::TestRequests::test_session_get_adapter_prefix_matching PASSED [ 32%] tests/test_requests.py::TestRequests::test_session_get_adapter_prefix_matching_mixed_case PASSED [ 32%] tests/test_requests.py::TestRequests::test_session_get_adapter_prefix_matching_is_case_insensitive PASSED [ 32%] tests/test_requests.py::TestRequests::test_header_remove_is_case_insensitive PASSED [ 32%] tests/test_requests.py::TestRequests::test_params_are_merged_case_sensitive PASSED [ 32%] tests/test_requests.py::TestRequests::test_long_authinfo_in_url PASSED [ 33%] tests/test_requests.py::TestRequests::test_header_keys_are_native PASSED [ 33%] tests/test_requests.py::TestRequests::test_header_validation PASSED [ 33%] tests/test_requests.py::TestRequests::test_header_value_not_str PASSED [ 33%] tests/test_requests.py::TestRequests::test_header_no_return_chars PASSED [ 33%] tests/test_requests.py::TestRequests::test_header_no_leading_space PASSED [ 33%] tests/test_requests.py::TestRequests::test_can_send_objects_with_files[foo0] PASSED [ 34%] tests/test_requests.py::TestRequests::test_can_send_objects_with_files[foo1] PASSED [ 34%] tests/test_requests.py::TestRequests::test_can_send_objects_with_files[files2] PASSED [ 34%] tests/test_requests.py::TestRequests::test_can_send_file_object_with_non_string_filename PASSED [ 34%] tests/test_requests.py::TestRequests::test_autoset_header_values_are_native PASSED [ 34%] tests/test_requests.py::TestRequests::test_nonhttp_schemes_dont_check_URLs PASSED [ 35%] tests/test_requests.py::TestRequests::test_auth_is_stripped_on_http_downgrade PASSED [ 35%] tests/test_requests.py::TestRequests::test_auth_is_retained_for_redirect_on_host PASSED [ 35%] tests/test_requests.py::TestRequests::test_should_strip_auth_host_change PASSED [ 35%] tests/test_requests.py::TestRequests::test_should_strip_auth_http_downgrade PASSED [ 35%] tests/test_requests.py::TestRequests::test_should_strip_auth_https_upgrade PASSED [ 35%] tests/test_requests.py::TestRequests::test_should_strip_auth_port_change PASSED [ 36%] tests/test_requests.py::TestRequests::test_should_strip_auth_default_port[https://example.com:443/foo-https://example.com/bar] PASSED [ 36%] tests/test_requests.py::TestRequests::test_should_strip_auth_default_port[http://example.com:80/foo-http://example.com/bar] PASSED [ 36%] tests/test_requests.py::TestRequests::test_should_strip_auth_default_port[https://example.com/foo-https://example.com:443/bar] PASSED [ 36%] tests/test_requests.py::TestRequests::test_should_strip_auth_default_port[http://example.com/foo-http://example.com:80/bar] PASSED [ 36%] tests/test_requests.py::TestRequests::test_manual_redirect_with_partial_body_read 127.0.0.1 - - [07/Apr/2020 21:24:00] "GET /get HTTP/1.1" 200 218 PASSED [ 37%] tests/test_requests.py::TestRequests::test_prepare_body_position_non_stream PASSED [ 37%] tests/test_requests.py::TestRequests::test_rewind_body PASSED [ 37%] tests/test_requests.py::TestRequests::test_rewind_partially_read_body PASSED [ 37%] tests/test_requests.py::TestRequests::test_rewind_body_no_seek PASSED [ 37%] tests/test_requests.py::TestRequests::test_rewind_body_failed_seek PASSED [ 38%] tests/test_requests.py::TestRequests::test_rewind_body_failed_tell PASSED [ 38%] tests/test_requests.py::TestRequests::test_redirect_with_wrong_gzipped_header PASSED [ 38%] tests/test_requests.py::TestRequests::test_basic_auth_str_is_always_native[test-test-Basic dGVzdDp0ZXN0] PASSED [ 38%] tests/test_requests.py::TestRequests::test_basic_auth_str_is_always_native[\xd0\xb8\xd0\xbc\xd1\x8f-\xd0\xbf\xd0\xb0\xd1\x80\xd0\xbe\xd0\xbb\xd1\x8c-Basic 0LjQvNGPOtC/0LDRgNC+0LvRjA==] PASSED [ 38%] tests/test_requests.py::TestRequests::test_requests_history_is_saved PASSED [ 38%] tests/test_requests.py::TestRequests::test_json_param_post_content_type_works PASSED [ 39%] tests/test_requests.py::TestRequests::test_json_param_post_should_not_override_data_param PASSED [ 39%] tests/test_requests.py::TestRequests::test_response_iter_lines PASSED [ 39%] tests/test_requests.py::TestRequests::test_response_context_manager 127.0.0.1 - - [07/Apr/2020 21:24:01] "GET /stream/4 HTTP/1.1" 200 496 PASSED [ 39%] tests/test_requests.py::TestRequests::test_unconsumed_session_response_closes_connection 127.0.0.1 - - [07/Apr/2020 21:24:01] "GET /stream/4 HTTP/1.1" 200 496 PASSED [ 39%]Traceback (most recent call last): File "/usr/lib/python2.7/SocketServer.py", line 293, in _handle_request_noblock self.process_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request self.finish_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.7/SocketServer.py", line 657, in __init__ self.finish() File "/usr/lib/python2.7/SocketServer.py", line 716, in finish ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 50998) tests/test_requests.py::TestRequests::test_response_iter_lines_reentrant self.wfile.close() File "/usr/lib/python2.7/socket.py", line 283, in close self._sock.sendall(view[write_offset:write_offset+buffer_size]) error: [Errno 32] Broken pipe ---------------------------------------- XFAIL [ 40%] tests/test_requests.py::TestRequests::test_session_close_proxy_clear PASSED [ 40%] tests/test_requests.py::TestRequests::test_proxy_auth PASSED [ 40%] tests/test_requests.py::TestRequests::test_proxy_auth_empty_pass PASSED [ 40%] tests/test_requests.py::TestRequests::test_response_json_when_content_is_None PASSED [ 40%] tests/test_requests.py::TestRequests::test_response_without_release_conn PASSED [ 41%] tests/test_requests.py::TestRequests::test_empty_stream_with_auth_does_not_set_content_length_header PASSED [ 41%] tests/test_requests.py::TestRequests::test_stream_with_auth_does_not_set_transfer_encoding_header PASSED [ 41%] tests/test_requests.py::TestRequests::test_chunked_upload_does_not_set_content_length_header PASSED [ 41%] tests/test_requests.py::TestRequests::test_custom_redirect_mixin PASSED [ 41%] tests/test_requests.py::TestCaseInsensitiveDict::test_init[cid0] PASSED [ 41%] tests/test_requests.py::TestCaseInsensitiveDict::test_init[cid1] PASSED [ 42%] tests/test_requests.py::TestCaseInsensitiveDict::test_init[cid2] PASSED [ 42%] tests/test_requests.py::TestCaseInsensitiveDict::test_docstring_example PASSED [ 42%] tests/test_requests.py::TestCaseInsensitiveDict::test_len PASSED [ 42%] tests/test_requests.py::TestCaseInsensitiveDict::test_getitem PASSED [ 42%] tests/test_requests.py::TestCaseInsensitiveDict::test_fixes_649 PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_delitem PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_contains PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_get PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_update PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_update_retains_unchanged PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_iter PASSED [ 44%] tests/test_requests.py::TestCaseInsensitiveDict::test_equality PASSED [ 44%] tests/test_requests.py::TestCaseInsensitiveDict::test_setdefault PASSED [ 44%] tests/test_requests.py::TestCaseInsensitiveDict::test_lower_items PASSED [ 44%] tests/test_requests.py::TestCaseInsensitiveDict::test_preserve_key_case PASSED [ 44%] tests/test_requests.py::TestCaseInsensitiveDict::test_preserve_last_key_case PASSED [ 45%] tests/test_requests.py::TestCaseInsensitiveDict::test_copy PASSED [ 45%] tests/test_requests.py::TestMorselToCookieExpires::test_expires_valid_str PASSED [ 45%] tests/test_requests.py::TestMorselToCookieExpires::test_expires_invalid_int[100-TypeError] PASSED [ 45%] tests/test_requests.py::TestMorselToCookieExpires::test_expires_invalid_int[woops-ValueError] PASSED [ 45%] tests/test_requests.py::TestMorselToCookieExpires::test_expires_none PASSED [ 46%] tests/test_requests.py::TestMorselToCookieMaxAge::test_max_age_valid_int PASSED [ 46%] tests/test_requests.py::TestMorselToCookieMaxAge::test_max_age_invalid_str PASSED [ 46%] tests/test_requests.py::TestTimeout::test_stream_timeout PASSED [ 46%] tests/test_requests.py::TestTimeout::test_invalid_timeout[timeout0-(connect, read)] PASSED [ 46%] tests/test_requests.py::TestTimeout::test_invalid_timeout[foo-must be an int, float or None] PASSED [ 46%] tests/test_requests.py::TestTimeout::test_none_timeout[None] PASSED [ 47%] tests/test_requests.py::TestTimeout::test_none_timeout[timeout1] PASSED [ 47%] tests/test_requests.py::TestTimeout::test_read_timeout[timeout0] PASSED [ 47%] tests/test_requests.py::TestTimeout::test_read_timeout[timeout1] PASSED [ 47%] tests/test_requests.py::TestTimeout::test_encoded_methods PASSED [ 47%] tests/test_requests.py::test_json_encodes_as_bytes PASSED [ 48%] tests/test_requests.py::test_requests_are_updated_each_time PASSED [ 48%] tests/test_requests.py::test_proxy_env_vars_override_default[http_proxy-http://example.com-socks5://proxy.com:9876] PASSED [ 48%] tests/test_requests.py::test_proxy_env_vars_override_default[https_proxy-https://example.com-socks5://proxy.com:9876] PASSED [ 48%] tests/test_requests.py::test_proxy_env_vars_override_default[all_proxy-http://example.com-socks5://proxy.com:9876] PASSED [ 48%] tests/test_requests.py::test_proxy_env_vars_override_default[all_proxy-https://example.com-socks5://proxy.com:9876] PASSED [ 48%] tests/test_requests.py::test_data_argument_accepts_tuples[data0] PASSED [ 49%] tests/test_requests.py::test_data_argument_accepts_tuples[data1] PASSED [ 49%] tests/test_requests.py::test_data_argument_accepts_tuples[data2] PASSED [ 49%] tests/test_requests.py::test_prepared_copy[None] PASSED [ 49%] tests/test_requests.py::test_prepared_copy[kwargs1] PASSED [ 49%] tests/test_requests.py::test_prepared_copy[kwargs2] PASSED [ 50%] tests/test_requests.py::test_prepared_copy[kwargs3] PASSED [ 50%] tests/test_requests.py::test_urllib3_retries PASSED [ 50%] tests/test_requests.py::test_urllib3_pool_connection_closed PASSED [ 50%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://google.com-http://google.com/] PASSED [ 50%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://\u30b8\u30a7\u30fc\u30d4\u30fc\u30cb\u30c3\u30af.jp-http://xn--hckqz9bzb1cyrb.jp/] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://xn--n3h.net/-http://xn--n3h.net/0] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://\xe3\x82\xb8\xe3\x82\xa7\xe3\x83\xbc\xe3\x83\x94\xe3\x83\xbc\xe3\x83\x8b\xe3\x83\x83\xe3\x82\xaf.jp-http://xn--hckqz9bzb1cyrb.jp/] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://stra\xdfe.de/stra\xdfe-http://xn--strae-oqa.de/stra%C3%9Fe] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://stra\xc3\x9fe.de/stra\xc3\x9fe-http://xn--strae-oqa.de/stra%C3%9Fe] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://K\xf6nigsg\xe4\xdfchen.de/stra\xdfe-http://xn--knigsgchen-b4a3dun.de/stra%C3%9Fe] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://K\xc3\xb6nigsg\xc3\xa4\xc3\x9fchen.de/stra\xc3\x9fe-http://xn--knigsgchen-b4a3dun.de/stra%C3%9Fe] PASSED [ 52%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://xn--n3h.net/-http://xn--n3h.net/1] PASSED [ 52%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://[1200:0000:ab00:1234:0000:2552:7777:1313]:12345/-http://[1200:0000:ab00:1234:0000:2552:7777:1313]:12345/0] PASSED [ 52%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://[1200:0000:ab00:1234:0000:2552:7777:1313]:12345/-http://[1200:0000:ab00:1234:0000:2552:7777:1313]:12345/1] PASSED [ 52%] tests/test_requests.py::TestPreparingURLs::test_preparing_bad_url[http://*.google.com0] PASSED [ 52%] tests/test_requests.py::TestPreparingURLs::test_preparing_bad_url[http://*0] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_preparing_bad_url[http://*.google.com1] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_preparing_bad_url[http://*1] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_preparing_bad_url[http://\u2603.net/] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_redirecting_to_bad_url[http://localhost:-1-InvalidURL] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_url_mutation[http+unix://%2Fvar%2Frun%2Fsocket/path%7E-http+unix://%2Fvar%2Frun%2Fsocket/path~0] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_url_mutation[http+unix://%2Fvar%2Frun%2Fsocket/path%7E-http+unix://%2Fvar%2Frun%2Fsocket/path~1] PASSED [ 54%] tests/test_requests.py::TestPreparingURLs::test_url_mutation[mailto:user@example.org-mailto:user@example.org0] PASSED [ 54%] tests/test_requests.py::TestPreparingURLs::test_url_mutation[mailto:user@example.org-mailto:user@example.org1] PASSED [ 54%] tests/test_requests.py::TestPreparingURLs::test_url_mutation[data:SSDimaUgUHl0aG9uIQ==-data:SSDimaUgUHl0aG9uIQ==] PASSED [ 54%] tests/test_requests.py::TestPreparingURLs::test_parameters_for_nonstandard_schemes[http+unix://%2Fvar%2Frun%2Fsocket/path-params0-http+unix://%2Fvar%2Frun%2Fsocket/path?key=value] PASSED [ 54%] tests/test_requests.py::TestPreparingURLs::test_parameters_for_nonstandard_schemes[http+unix://%2Fvar%2Frun%2Fsocket/path-params1-http+unix://%2Fvar%2Frun%2Fsocket/path?key=value] PASSED [ 55%] tests/test_requests.py::TestPreparingURLs::test_parameters_for_nonstandard_schemes[mailto:user@example.org-params2-mailto:user@example.org] PASSED [ 55%] tests/test_requests.py::TestPreparingURLs::test_parameters_for_nonstandard_schemes[mailto:user@example.org-params3-mailto:user@example.org] PASSED [ 55%] tests/test_structures.py::TestCaseInsensitiveDict::test_list PASSED [ 55%] tests/test_structures.py::TestCaseInsensitiveDict::test_getitem[accept] PASSED [ 55%] tests/test_structures.py::TestCaseInsensitiveDict::test_getitem[ACCEPT] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_getitem[aCcEpT] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_getitem[Accept] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_delitem[accept] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_delitem[ACCEPT] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_delitem[aCcEpT] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_delitem[Accept] PASSED [ 57%] tests/test_structures.py::TestCaseInsensitiveDict::test_lower_items PASSED [ 57%] tests/test_structures.py::TestCaseInsensitiveDict::test_repr PASSED [ 57%] tests/test_structures.py::TestCaseInsensitiveDict::test_copy PASSED [ 57%] tests/test_structures.py::TestCaseInsensitiveDict::test_instance_equality[other0-True] PASSED [ 57%] tests/test_structures.py::TestCaseInsensitiveDict::test_instance_equality[other1-False] PASSED [ 58%] tests/test_structures.py::TestCaseInsensitiveDict::test_instance_equality[None-False] PASSED [ 58%] tests/test_structures.py::TestLookupDict::test_repr PASSED [ 58%] tests/test_structures.py::TestLookupDict::test_getitem[bad_gateway-502] PASSED [ 58%] tests/test_structures.py::TestLookupDict::test_getitem[not_a_key-None] PASSED [ 58%] tests/test_structures.py::TestLookupDict::test_get[bad_gateway-502] PASSED [ 58%] tests/test_structures.py::TestLookupDict::test_get[not_a_key-None] PASSED [ 59%] tests/test_testserver.py::TestTestServer::test_basic PASSED [ 59%] tests/test_testserver.py::TestTestServer::test_server_closes PASSED [ 59%] tests/test_testserver.py::TestTestServer::test_text_response PASSED [ 59%] tests/test_testserver.py::TestTestServer::test_basic_response PASSED [ 59%] tests/test_testserver.py::TestTestServer::test_basic_waiting_server PASSED [ 60%] tests/test_testserver.py::TestTestServer::test_multiple_requests PASSED [ 60%] tests/test_testserver.py::TestTestServer::test_request_recovery SKIPPED [ 60%] tests/test_testserver.py::TestTestServer::test_requests_after_timeout_are_not_received PASSED [ 60%] tests/test_testserver.py::TestTestServer::test_request_recovery_with_bigger_timeout PASSED [ 60%] tests/test_testserver.py::TestTestServer::test_server_finishes_on_error PASSED [ 61%] tests/test_testserver.py::TestTestServer::test_server_finishes_when_no_connections PASSED [ 61%] tests/test_utils.py::TestSuperLen::test_io_streams[StringIO-Test] PASSED [ 61%] tests/test_utils.py::TestSuperLen::test_io_streams[BytesIO-Test] PASSED [ 61%] tests/test_utils.py::TestSuperLen::test_io_streams[stream2-Test] PASSED [ 61%] tests/test_utils.py::TestSuperLen::test_super_len_correctly_calculates_len_of_partially_read_file PASSED [ 61%] tests/test_utils.py::TestSuperLen::test_super_len_handles_files_raising_weird_errors_in_tell[IOError] PASSED [ 62%] tests/test_utils.py::TestSuperLen::test_super_len_handles_files_raising_weird_errors_in_tell[OSError] PASSED [ 62%] tests/test_utils.py::TestSuperLen::test_super_len_tell_ioerror[IOError] PASSED [ 62%] tests/test_utils.py::TestSuperLen::test_super_len_tell_ioerror[OSError] PASSED [ 62%] tests/test_utils.py::TestSuperLen::test_string PASSED [ 62%] tests/test_utils.py::TestSuperLen::test_file[r-1] PASSED [ 63%] tests/test_utils.py::TestSuperLen::test_file[rb-0] PASSED [ 63%] tests/test_utils.py::TestSuperLen::test_super_len_with__len__ PASSED [ 63%] tests/test_utils.py::TestSuperLen::test_super_len_with_no__len__ PASSED [ 63%] tests/test_utils.py::TestSuperLen::test_super_len_with_tell PASSED [ 63%] tests/test_utils.py::TestSuperLen::test_super_len_with_fileno PASSED [ 64%] tests/test_utils.py::TestSuperLen::test_super_len_with_no_matches PASSED [ 64%] tests/test_utils.py::TestToKeyValList::test_valid[value0-expected0] PASSED [ 64%] tests/test_utils.py::TestToKeyValList::test_valid[value1-expected1] PASSED [ 64%] tests/test_utils.py::TestToKeyValList::test_valid[value2-expected2] PASSED [ 64%] tests/test_utils.py::TestToKeyValList::test_valid[None-None] PASSED [ 64%] tests/test_utils.py::TestToKeyValList::test_invalid PASSED [ 65%] tests/test_utils.py::TestUnquoteHeaderValue::test_valid[None-None] PASSED [ 65%] tests/test_utils.py::TestUnquoteHeaderValue::test_valid[Test-Test] PASSED [ 65%] tests/test_utils.py::TestUnquoteHeaderValue::test_valid["Test"-Test] PASSED [ 65%] tests/test_utils.py::TestUnquoteHeaderValue::test_valid["Test\\"-Test\] PASSED [ 65%] tests/test_utils.py::TestUnquoteHeaderValue::test_valid["\\Comp\Res"-\Comp\Res] PASSED [ 66%] tests/test_utils.py::TestUnquoteHeaderValue::test_is_filename PASSED [ 66%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[no_proxy-http://192.168.0.1:5000/] PASSED [ 66%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[no_proxy-http://192.168.0.1/] PASSED [ 66%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[no_proxy-http://172.16.1.1/] PASSED [ 66%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[no_proxy-http://172.16.1.1:5000/] PASSED [ 66%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[no_proxy-http://localhost.localdomain:5000/v1.0/] PASSED [ 67%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[NO_PROXY-http://192.168.0.1:5000/] PASSED [ 67%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[NO_PROXY-http://192.168.0.1/] PASSED [ 67%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[NO_PROXY-http://172.16.1.1/] PASSED [ 67%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[NO_PROXY-http://172.16.1.1:5000/] PASSED [ 67%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[NO_PROXY-http://localhost.localdomain:5000/v1.0/] PASSED [ 68%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[no_proxy-http://192.168.1.1:5000/] PASSED [ 68%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[no_proxy-http://192.168.1.1/] PASSED [ 68%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[no_proxy-http://www.requests.com/] PASSED [ 68%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[NO_PROXY-http://192.168.1.1:5000/] PASSED [ 68%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[NO_PROXY-http://192.168.1.1/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[NO_PROXY-http://www.requests.com/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[no_proxy-http://192.168.1.1:5000/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[no_proxy-http://192.168.1.1/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[no_proxy-http://www.requests.com/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[NO_PROXY-http://192.168.1.1:5000/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[NO_PROXY-http://192.168.1.1/] PASSED [ 70%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[NO_PROXY-http://www.requests.com/] PASSED [ 70%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[no_proxy-http://192.168.0.1:5000/] PASSED [ 70%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[no_proxy-http://192.168.0.1/] PASSED [ 70%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[no_proxy-http://172.16.1.1/] PASSED [ 70%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[no_proxy-http://172.16.1.1:5000/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[no_proxy-http://localhost.localdomain:5000/v1.0/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[NO_PROXY-http://192.168.0.1:5000/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[NO_PROXY-http://192.168.0.1/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[NO_PROXY-http://172.16.1.1/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[NO_PROXY-http://172.16.1.1:5000/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[NO_PROXY-http://localhost.localdomain:5000/v1.0/] PASSED [ 72%] tests/test_utils.py::TestIsIPv4Address::test_valid PASSED [ 72%] tests/test_utils.py::TestIsIPv4Address::test_invalid[8.8.8.8.8] PASSED [ 72%] tests/test_utils.py::TestIsIPv4Address::test_invalid[localhost.localdomain] PASSED [ 72%] tests/test_utils.py::TestIsValidCIDR::test_valid PASSED [ 72%] tests/test_utils.py::TestIsValidCIDR::test_invalid[8.8.8.8] PASSED [ 73%] tests/test_utils.py::TestIsValidCIDR::test_invalid[192.168.1.0/a] PASSED [ 73%] tests/test_utils.py::TestIsValidCIDR::test_invalid[192.168.1.0/128] PASSED [ 73%] tests/test_utils.py::TestIsValidCIDR::test_invalid[192.168.1.0/-1] PASSED [ 73%] tests/test_utils.py::TestIsValidCIDR::test_invalid[192.168.1.999/24] PASSED [ 73%] tests/test_utils.py::TestAddressInNetwork::test_valid PASSED [ 74%] tests/test_utils.py::TestAddressInNetwork::test_invalid PASSED [ 74%] tests/test_utils.py::TestGuessFilename::test_guess_filename_invalid[1] PASSED [ 74%] tests/test_utils.py::TestGuessFilename::test_guess_filename_invalid[value1] PASSED [ 74%] tests/test_utils.py::TestGuessFilename::test_guess_filename_valid[value-str] PASSED [ 74%] tests/test_utils.py::TestGuessFilename::test_guess_filename_valid[value-unicode] PASSED [ 74%] tests/test_utils.py::TestExtractZippedPaths::test_unzipped_paths_unchanged[/] PASSED [ 75%] tests/test_utils.py::TestExtractZippedPaths::test_unzipped_paths_unchanged[/var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0/tests/test_utils.py] PASSED [ 75%] tests/test_utils.py::TestExtractZippedPaths::test_unzipped_paths_unchanged[/usr/lib/python2.7/site-packages/pytest.pyc] PASSED [ 75%] tests/test_utils.py::TestExtractZippedPaths::test_unzipped_paths_unchanged[/etc/invalid/location] PASSED [ 75%] tests/test_utils.py::TestExtractZippedPaths::test_zipped_paths_extracted PASSED [ 75%] tests/test_utils.py::TestContentEncodingDetection::test_none PASSED [ 76%] tests/test_utils.py::TestContentEncodingDetection::test_pragmas[] PASSED [ 76%] tests/test_utils.py::TestContentEncodingDetection::test_pragmas[] PASSED [ 76%] tests/test_utils.py::TestContentEncodingDetection::test_pragmas[] PASSED [ 76%] tests/test_utils.py::TestContentEncodingDetection::test_pragmas[] PASSED [ 76%] tests/test_utils.py::TestContentEncodingDetection::test_precedence PASSED [ 76%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-32] PASSED [ 77%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-8-sig] PASSED [ 77%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-16] PASSED [ 77%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-8] PASSED [ 77%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-16-be] PASSED [ 77%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-16-le] PASSED [ 78%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-32-be] PASSED [ 78%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-32-le] PASSED [ 78%] tests/test_utils.py::TestGuessJSONUTF::test_bad_utf_like_encoding PASSED [ 78%] tests/test_utils.py::TestGuessJSONUTF::test_guess_by_bom[utf-16-be-utf-16] PASSED [ 78%] tests/test_utils.py::TestGuessJSONUTF::test_guess_by_bom[utf-16-le-utf-16] PASSED [ 79%] tests/test_utils.py::TestGuessJSONUTF::test_guess_by_bom[utf-32-be-utf-32] PASSED [ 79%] tests/test_utils.py::TestGuessJSONUTF::test_guess_by_bom[utf-32-le-utf-32] PASSED [ 79%] tests/test_utils.py::test_get_auth_from_url[http://%25%21%2A%27%28%29%3B%3A%40%26%3D%2B%24%2C%2F%3F%23%5B%5D%20:%25%21%2A%27%28%29%3B%3A%40%26%3D%2B%24%2C%2F%3F%23%5B%5D%20@request.com/url.html#test-auth0] PASSED [ 79%] tests/test_utils.py::test_get_auth_from_url[http://user:pass@complex.url.com/path?query=yes-auth1] PASSED [ 79%] tests/test_utils.py::test_get_auth_from_url[http://user:pass%20pass@complex.url.com/path?query=yes-auth2] PASSED [ 79%] tests/test_utils.py::test_get_auth_from_url[http://user:pass pass@complex.url.com/path?query=yes-auth3] PASSED [ 80%] tests/test_utils.py::test_get_auth_from_url[http://user%25user:pass@complex.url.com/path?query=yes-auth4] PASSED [ 80%] tests/test_utils.py::test_get_auth_from_url[http://user:pass%23pass@complex.url.com/path?query=yes-auth5] PASSED [ 80%] tests/test_utils.py::test_get_auth_from_url[http://complex.url.com/path?query=yes-auth6] PASSED [ 80%] tests/test_utils.py::test_requote_uri_with_unquoted_percents[http://example.com/fiz?buz=%25ppicture-http://example.com/fiz?buz=%25ppicture] PASSED [ 80%] tests/test_utils.py::test_requote_uri_with_unquoted_percents[http://example.com/fiz?buz=%ppicture-http://example.com/fiz?buz=%25ppicture] PASSED [ 81%] tests/test_utils.py::test_unquote_unreserved[http://example.com/?a=%---http://example.com/?a=%--] PASSED [ 81%] tests/test_utils.py::test_unquote_unreserved[http://example.com/?a=%300-http://example.com/?a=00] PASSED [ 81%] tests/test_utils.py::test_dotted_netmask[8-255.0.0.0] PASSED [ 81%] tests/test_utils.py::test_dotted_netmask[24-255.255.255.0] PASSED [ 81%] tests/test_utils.py::test_dotted_netmask[25-255.255.255.128] PASSED [ 82%] tests/test_utils.py::test_select_proxies[hTTp://u:p@Some.Host/path-http://some.host.proxy-proxies0] PASSED [ 82%] tests/test_utils.py::test_select_proxies[hTTp://u:p@Other.Host/path-http://http.proxy-proxies1] PASSED [ 82%] tests/test_utils.py::test_select_proxies[hTTp:///path-http://http.proxy-proxies2] PASSED [ 82%] tests/test_utils.py::test_select_proxies[hTTps://Other.Host-None-proxies3] PASSED [ 82%] tests/test_utils.py::test_select_proxies[file:///etc/motd-None-proxies4] PASSED [ 82%] tests/test_utils.py::test_select_proxies[hTTp://u:p@Some.Host/path-socks5://some.host.proxy-proxies5] PASSED [ 83%] tests/test_utils.py::test_select_proxies[hTTp://u:p@Other.Host/path-socks5://http.proxy-proxies6] PASSED [ 83%] tests/test_utils.py::test_select_proxies[hTTp:///path-socks5://http.proxy-proxies7] PASSED [ 83%] tests/test_utils.py::test_select_proxies[hTTps://Other.Host-socks5://http.proxy-proxies8] PASSED [ 83%] tests/test_utils.py::test_select_proxies[http://u:p@other.host/path-http://http.proxy-proxies9] PASSED [ 83%] tests/test_utils.py::test_select_proxies[http://u:p@some.host/path-http://some.host.proxy-proxies10] PASSED [ 84%] tests/test_utils.py::test_select_proxies[https://u:p@other.host/path-socks5://http.proxy-proxies11] PASSED [ 84%] tests/test_utils.py::test_select_proxies[https://u:p@some.host/path-socks5://http.proxy-proxies12] PASSED [ 84%] tests/test_utils.py::test_select_proxies[https://-socks5://http.proxy-proxies13] PASSED [ 84%] tests/test_utils.py::test_select_proxies[file:///etc/motd-socks5://http.proxy-proxies14] PASSED [ 84%] tests/test_utils.py::test_parse_dict_header[foo="is a fish", bar="as well"-expected0] PASSED [ 84%] tests/test_utils.py::test_parse_dict_header[key_without_value-expected1] PASSED [ 85%] tests/test_utils.py::test__parse_content_type_header[application/xml-expected0] PASSED [ 85%] tests/test_utils.py::test__parse_content_type_header[application/json ; charset=utf-8-expected1] PASSED [ 85%] tests/test_utils.py::test__parse_content_type_header[application/json ; Charset=utf-8-expected2] PASSED [ 85%] tests/test_utils.py::test__parse_content_type_header[text/plain-expected3] PASSED [ 85%] tests/test_utils.py::test__parse_content_type_header[multipart/form-data; boundary = something ; boundary2='something_else' ; no_equals -expected4] PASSED [ 86%] tests/test_utils.py::test__parse_content_type_header[multipart/form-data; boundary = something ; boundary2="something_else" ; no_equals -expected5] PASSED [ 86%] tests/test_utils.py::test__parse_content_type_header[multipart/form-data; boundary = something ; 'boundary2=something_else' ; no_equals -expected6] PASSED [ 86%] tests/test_utils.py::test__parse_content_type_header[multipart/form-data; boundary = something ; "boundary2=something_else" ; no_equals -expected7] PASSED [ 86%] tests/test_utils.py::test__parse_content_type_header[application/json ; ; -expected8] PASSED [ 86%] tests/test_utils.py::test_get_encoding_from_headers[value0-None] PASSED [ 87%] tests/test_utils.py::test_get_encoding_from_headers[value1-utf-8] PASSED [ 87%] tests/test_utils.py::test_get_encoding_from_headers[value2-ISO-8859-1] PASSED [ 87%] tests/test_utils.py::test_iter_slices[-0] PASSED [ 87%] tests/test_utils.py::test_iter_slices[T-1] PASSED [ 87%] tests/test_utils.py::test_iter_slices[Test-4] PASSED [ 87%] tests/test_utils.py::test_iter_slices[Cont-0] PASSED [ 88%] tests/test_utils.py::test_iter_slices[Other--5] PASSED [ 88%] tests/test_utils.py::test_iter_slices[Content-None] PASSED [ 88%] tests/test_utils.py::test_parse_header_links[; rel=front; type="image/jpeg"-expected0] PASSED [ 88%] tests/test_utils.py::test_parse_header_links[-expected1] PASSED [ 88%] tests/test_utils.py::test_parse_header_links[;-expected2] PASSED [ 89%] tests/test_utils.py::test_parse_header_links[; type="image/jpeg",;-expected3] PASSED [ 89%] tests/test_utils.py::test_parse_header_links[-expected4] PASSED [ 89%] tests/test_utils.py::test_prepend_scheme_if_needed[example.com/path-http://example.com/path] PASSED [ 89%] tests/test_utils.py::test_prepend_scheme_if_needed[//example.com/path-http://example.com/path] PASSED [ 89%] tests/test_utils.py::test_to_native_string[T-T0] PASSED [ 89%] tests/test_utils.py::test_to_native_string[T-T1] PASSED [ 90%] tests/test_utils.py::test_to_native_string[T-T2] PASSED [ 90%] tests/test_utils.py::test_urldefragauth[http://u:p@example.com/path?a=1#test-http://example.com/path?a=1] PASSED [ 90%] tests/test_utils.py::test_urldefragauth[http://example.com/path-http://example.com/path] PASSED [ 90%] tests/test_utils.py::test_urldefragauth[//u:p@example.com/path-//example.com/path] PASSED [ 90%] tests/test_utils.py::test_urldefragauth[//example.com/path-//example.com/path] PASSED [ 91%] tests/test_utils.py::test_urldefragauth[example.com/path-//example.com/path] PASSED [ 91%] tests/test_utils.py::test_urldefragauth[scheme:u:p@example.com/path-scheme://example.com/path] PASSED [ 91%] tests/test_utils.py::test_should_bypass_proxies[http://192.168.0.1:5000/-True] PASSED [ 91%] tests/test_utils.py::test_should_bypass_proxies[http://192.168.0.1/-True] PASSED [ 91%] tests/test_utils.py::test_should_bypass_proxies[http://172.16.1.1/-True] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://172.16.1.1:5000/-True] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://localhost.localdomain:5000/v1.0/-True] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://google.com:6000/-True] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://172.16.1.12/-False] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://172.16.1.12:5000/-False] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://google.com:5000/v1.0/-False] PASSED [ 93%] tests/test_utils.py::test_should_bypass_proxies[file:///some/path/on/disk-True] PASSED [ 93%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://172.16.1.1/-172.16.1.1] PASSED [ 93%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://172.16.1.1:5000/-172.16.1.1] PASSED [ 93%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://user:pass@172.16.1.1-172.16.1.1] PASSED [ 93%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://user:pass@172.16.1.1:5000-172.16.1.1] PASSED [ 94%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://hostname/-hostname] PASSED [ 94%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://hostname:5000/-hostname] PASSED [ 94%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://user:pass@hostname-hostname] PASSED [ 94%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://user:pass@hostname:5000-hostname] PASSED [ 94%] tests/test_utils.py::test_add_dict_to_cookiejar[cookiejar0] PASSED [ 94%] tests/test_utils.py::test_add_dict_to_cookiejar[cookiejar1] PASSED [ 95%] tests/test_utils.py::test_unicode_is_ascii[test-True] PASSED [ 95%] tests/test_utils.py::test_unicode_is_ascii[\xe6\xed\xf6\xfb-False] PASSED [ 95%] tests/test_utils.py::test_unicode_is_ascii[\u30b8\u30a7\u30fc\u30d4\u30fc\u30cb\u30c3\u30af-False] PASSED [ 95%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://192.168.0.1:5000/-True] PASSED [ 95%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://192.168.0.1/-True] PASSED [ 96%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://172.16.1.1/-True] PASSED [ 96%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://172.16.1.1:5000/-True] PASSED [ 96%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://localhost.localdomain:5000/v1.0/-True] PASSED [ 96%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://172.16.1.12/-False] PASSED [ 96%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://172.16.1.12:5000/-False] PASSED [ 97%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://google.com:5000/v1.0/-False] PASSED [ 97%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://192.168.0.1:5000/-True-None] SKIPPED [ 97%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://192.168.0.1/-True-None] SKIPPED [ 97%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://172.16.1.1/-True-None] SKIPPED [ 97%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://172.16.1.1:5000/-True-None] SKIPPED [ 97%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://localhost.localdomain:5000/v1.0/-True-None] SKIPPED [ 98%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://172.16.1.22/-False-None] SKIPPED [ 98%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://172.16.1.22:5000/-False-None] SKIPPED [ 98%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://google.com:5000/v1.0/-False-None] SKIPPED [ 98%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://mylocalhostname:5000/v1.0/-True-] SKIPPED [ 98%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://192.168.0.1/-False-] SKIPPED [ 99%] tests/test_utils.py::test_set_environ[no_proxy-192.168.0.0/24,127.0.0.1,localhost.localdomain] PASSED [ 99%] tests/test_utils.py::test_set_environ[no_proxy-None] PASSED [ 99%] tests/test_utils.py::test_set_environ[a_new_key-192.168.0.0/24,127.0.0.1,localhost.localdomain] PASSED [ 99%] tests/test_utils.py::test_set_environ[a_new_key-None] PASSED [ 99%] tests/test_utils.py::test_set_environ_raises_exception PASSED [100%] ========================================================================================================== 527 passed, 11 skipped, 1 xfailed in 80.96 seconds ========================================================================================================== * python3_6: running distutils-r1_run_phase python_test ========================================================================================================================= test session starts ========================================================================================================================== platform linux -- Python 3.6.10, pytest-4.5.0, py-1.5.4, pluggy-0.13.1 -- /usr/bin/python3.6 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0/.hypothesis/examples') rootdir: /var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0, inifile: pytest.ini plugins: xdist-1.23.2, flaky-3.6.1, hypothesis-4.50.8, httpbin-1.0.0, forked-1.1.3, mock-1.11.2 collecting ... collected 539 items tests/test_help.py::test_system_ssl PASSED [ 0%] tests/test_help.py::test_idna_without_version_attribute PASSED [ 0%] tests/test_help.py::test_idna_with_version_attribute PASSED [ 0%] tests/test_hooks.py::test_hooks[hook-ata] PASSED [ 0%] tests/test_hooks.py::test_hooks[hooks_list1-ta] PASSED [ 0%] tests/test_hooks.py::test_default_hooks PASSED [ 1%] tests/test_lowlevel.py::test_chunked_upload PASSED [ 1%] tests/test_lowlevel.py::test_digestauth_401_count_reset_on_redirect PASSED [ 1%] tests/test_lowlevel.py::test_digestauth_401_only_sent_once PASSED [ 1%] tests/test_lowlevel.py::test_digestauth_only_on_4xx PASSED [ 1%] tests/test_lowlevel.py::test_use_proxy_from_environment[http_proxy-http] PASSED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[https_proxy-https] FAILED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[all_proxy-http] PASSED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[all_proxy-https] FAILED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[HTTP_PROXY-http] PASSED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[HTTPS_PROXY-https] FAILED [ 2%] tests/test_lowlevel.py::test_use_proxy_from_environment[ALL_PROXY-http] PASSED [ 3%] tests/test_lowlevel.py::test_use_proxy_from_environment[ALL_PROXY-https] FAILED [ 3%] tests/test_lowlevel.py::test_redirect_rfc1808_to_non_ascii_location PASSED [ 3%] tests/test_lowlevel.py::test_fragment_not_sent_with_request PASSED [ 3%] tests/test_lowlevel.py::test_fragment_update_on_redirect PASSED [ 3%] tests/test_packages.py::test_can_access_urllib3_attribute PASSED [ 4%] tests/test_packages.py::test_can_access_idna_attribute PASSED [ 4%] tests/test_packages.py::test_can_access_chardet_attribute PASSED [ 4%] tests/test_requests.py::TestRequests::test_entry_points PASSED [ 4%] tests/test_requests.py::TestRequests::test_invalid_url[MissingSchema-hiwpefhipowhefopw] PASSED [ 4%] tests/test_requests.py::TestRequests::test_invalid_url[InvalidSchema-localhost:3128] PASSED [ 5%] tests/test_requests.py::TestRequests::test_invalid_url[InvalidSchema-localhost.localdomain:3128/] PASSED [ 5%] tests/test_requests.py::TestRequests::test_invalid_url[InvalidSchema-10.122.1.1:3128/] PASSED [ 5%] tests/test_requests.py::TestRequests::test_invalid_url[InvalidURL-http://] PASSED [ 5%] tests/test_requests.py::TestRequests::test_basic_building PASSED [ 5%] tests/test_requests.py::TestRequests::test_no_content_length[GET] PASSED [ 5%] tests/test_requests.py::TestRequests::test_no_content_length[HEAD] PASSED [ 6%] tests/test_requests.py::TestRequests::test_no_body_content_length[POST] PASSED [ 6%] tests/test_requests.py::TestRequests::test_no_body_content_length[PUT] PASSED [ 6%] tests/test_requests.py::TestRequests::test_no_body_content_length[PATCH] PASSED [ 6%] tests/test_requests.py::TestRequests::test_no_body_content_length[OPTIONS] PASSED [ 6%] tests/test_requests.py::TestRequests::test_empty_content_length[POST] PASSED [ 7%] tests/test_requests.py::TestRequests::test_empty_content_length[PUT] PASSED [ 7%] tests/test_requests.py::TestRequests::test_empty_content_length[PATCH] PASSED [ 7%] tests/test_requests.py::TestRequests::test_empty_content_length[OPTIONS] PASSED [ 7%] tests/test_requests.py::TestRequests::test_override_content_length PASSED [ 7%] tests/test_requests.py::TestRequests::test_path_is_not_double_encoded PASSED [ 7%] tests/test_requests.py::TestRequests::test_params_are_added_before_fragment[http://example.com/path#fragment-http://example.com/path?a=b#fragment] PASSED [ 8%] tests/test_requests.py::TestRequests::test_params_are_added_before_fragment[http://example.com/path?key=value#fragment-http://example.com/path?key=value&a=b#fragment] PASSED [ 8%] tests/test_requests.py::TestRequests::test_params_original_order_is_preserved_by_default PASSED [ 8%] tests/test_requests.py::TestRequests::test_params_bytes_are_encoded PASSED [ 8%] tests/test_requests.py::TestRequests::test_binary_put PASSED [ 8%] tests/test_requests.py::TestRequests::test_whitespaces_are_removed_from_url PASSED [ 9%] tests/test_requests.py::TestRequests::test_mixed_case_scheme_acceptable[http://] PASSED [ 9%] tests/test_requests.py::TestRequests::test_mixed_case_scheme_acceptable[HTTP://] PASSED [ 9%] tests/test_requests.py::TestRequests::test_mixed_case_scheme_acceptable[hTTp://] PASSED [ 9%] tests/test_requests.py::TestRequests::test_mixed_case_scheme_acceptable[HttP://] PASSED [ 9%] tests/test_requests.py::TestRequests::test_HTTP_200_OK_GET_ALTERNATIVE PASSED [ 10%] tests/test_requests.py::TestRequests::test_HTTP_302_ALLOW_REDIRECT_GET PASSED [ 10%] tests/test_requests.py::TestRequests::test_HTTP_307_ALLOW_REDIRECT_POST PASSED [ 10%] tests/test_requests.py::TestRequests::test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE PASSED [ 10%] tests/test_requests.py::TestRequests::test_HTTP_302_TOO_MANY_REDIRECTS PASSED [ 10%] tests/test_requests.py::TestRequests::test_HTTP_302_TOO_MANY_REDIRECTS_WITH_PARAMS PASSED [ 10%] tests/test_requests.py::TestRequests::test_http_301_changes_post_to_get PASSED [ 11%] tests/test_requests.py::TestRequests::test_http_301_doesnt_change_head_to_get PASSED [ 11%] tests/test_requests.py::TestRequests::test_http_302_changes_post_to_get PASSED [ 11%] tests/test_requests.py::TestRequests::test_http_302_doesnt_change_head_to_get PASSED [ 11%] tests/test_requests.py::TestRequests::test_http_303_changes_post_to_get PASSED [ 11%] tests/test_requests.py::TestRequests::test_http_303_doesnt_change_head_to_get PASSED [ 12%] tests/test_requests.py::TestRequests::test_header_and_body_removal_on_redirect PASSED [ 12%] tests/test_requests.py::TestRequests::test_transfer_enc_removal_on_redirect PASSED [ 12%] tests/test_requests.py::TestRequests::test_fragment_maintained_on_redirect PASSED [ 12%] tests/test_requests.py::TestRequests::test_HTTP_200_OK_GET_WITH_PARAMS PASSED [ 12%] tests/test_requests.py::TestRequests::test_HTTP_200_OK_GET_WITH_MIXED_PARAMS PASSED [ 12%] tests/test_requests.py::TestRequests::test_set_cookie_on_301 PASSED [ 13%] tests/test_requests.py::TestRequests::test_cookie_sent_on_redirect PASSED [ 13%] tests/test_requests.py::TestRequests::test_cookie_removed_on_expire PASSED [ 13%] tests/test_requests.py::TestRequests::test_cookie_quote_wrapped PASSED [ 13%] tests/test_requests.py::TestRequests::test_cookie_persists_via_api PASSED [ 13%] tests/test_requests.py::TestRequests::test_request_cookie_overrides_session_cookie PASSED [ 14%] tests/test_requests.py::TestRequests::test_request_cookies_not_persisted PASSED [ 14%] tests/test_requests.py::TestRequests::test_generic_cookiejar_works PASSED [ 14%] tests/test_requests.py::TestRequests::test_param_cookiejar_works PASSED [ 14%] tests/test_requests.py::TestRequests::test_cookielib_cookiejar_on_redirect PASSED [ 14%] tests/test_requests.py::TestRequests::test_requests_in_history_are_not_overridden PASSED [ 15%] tests/test_requests.py::TestRequests::test_history_is_always_a_list PASSED [ 15%] tests/test_requests.py::TestRequests::test_headers_on_session_with_None_are_not_sent PASSED [ 15%] tests/test_requests.py::TestRequests::test_headers_preserve_order PASSED [ 15%] tests/test_requests.py::TestRequests::test_user_agent_transfers[User-agent] PASSED [ 15%] tests/test_requests.py::TestRequests::test_user_agent_transfers[user-agent] PASSED [ 15%] tests/test_requests.py::TestRequests::test_HTTP_200_OK_HEAD PASSED [ 16%] tests/test_requests.py::TestRequests::test_HTTP_200_OK_PUT PASSED [ 16%] tests/test_requests.py::TestRequests::test_BASICAUTH_TUPLE_HTTP_200_OK_GET PASSED [ 16%] tests/test_requests.py::TestRequests::test_set_basicauth[user-pass] PASSED [ 16%] tests/test_requests.py::TestRequests::test_set_basicauth[\xd0\xb8\xd0\xbc\xd1\x8f-\xd0\xbf\xd0\xb0\xd1\x80\xd0\xbe\xd0\xbb\xd1\x8c] PASSED [ 16%] tests/test_requests.py::TestRequests::test_set_basicauth[42-42] PASSED [ 17%] tests/test_requests.py::TestRequests::test_set_basicauth[None-None] PASSED [ 17%] tests/test_requests.py::TestRequests::test_basicauth_encodes_byte_strings PASSED [ 17%] tests/test_requests.py::TestRequests::test_errors[http://doesnotexist.google.com-ConnectionError] PASSED [ 17%] tests/test_requests.py::TestRequests::test_errors[http://localhost:1-ConnectionError] PASSED [ 17%] tests/test_requests.py::TestRequests::test_errors[http://fe80::5054:ff:fe5a:fc0-InvalidURL] PASSED [ 17%] tests/test_requests.py::TestRequests::test_proxy_error PASSED [ 18%] tests/test_requests.py::TestRequests::test_proxy_error_on_bad_url PASSED [ 18%] tests/test_requests.py::TestRequests::test_basicauth_with_netrc PASSED [ 18%] tests/test_requests.py::TestRequests::test_DIGEST_HTTP_200_OK_GET PASSED [ 18%] tests/test_requests.py::TestRequests::test_DIGEST_AUTH_RETURNS_COOKIE PASSED [ 18%] tests/test_requests.py::TestRequests::test_DIGEST_AUTH_SETS_SESSION_COOKIES PASSED [ 19%] tests/test_requests.py::TestRequests::test_DIGEST_STREAM PASSED [ 19%] tests/test_requests.py::TestRequests::test_DIGESTAUTH_WRONG_HTTP_401_GET PASSED [ 19%] tests/test_requests.py::TestRequests::test_DIGESTAUTH_QUOTES_QOP_VALUE PASSED [ 19%] tests/test_requests.py::TestRequests::test_POSTBIN_GET_POST_FILES PASSED [ 19%] tests/test_requests.py::TestRequests::test_invalid_files_input PASSED [ 20%] tests/test_requests.py::TestRequests::test_POSTBIN_SEEKED_OBJECT_WITH_NO_ITER PASSED [ 20%] tests/test_requests.py::TestRequests::test_POSTBIN_GET_POST_FILES_WITH_DATA PASSED [ 20%] tests/test_requests.py::TestRequests::test_post_with_custom_mapping PASSED [ 20%] tests/test_requests.py::TestRequests::test_conflicting_post_params PASSED [ 20%] tests/test_requests.py::TestRequests::test_request_ok_set PASSED [ 20%] tests/test_requests.py::TestRequests::test_status_raising PASSED [ 21%] tests/test_requests.py::TestRequests::test_decompress_gzip PASSED [ 21%] tests/test_requests.py::TestRequests::test_unicode_get[/get-params0] PASSED [ 21%] tests/test_requests.py::TestRequests::test_unicode_get[/get-params1] PASSED [ 21%] tests/test_requests.py::TestRequests::test_unicode_get[/get-params2] PASSED [ 21%] tests/test_requests.py::TestRequests::test_unicode_get[/get-params3] PASSED [ 22%] tests/test_requests.py::TestRequests::test_unicode_get[\xf8-params4] PASSED [ 22%] tests/test_requests.py::TestRequests::test_unicode_header_name PASSED [ 22%] tests/test_requests.py::TestRequests::test_pyopenssl_redirect PASSED [ 22%] tests/test_requests.py::TestRequests::test_invalid_ca_certificate_path PASSED [ 22%] tests/test_requests.py::TestRequests::test_invalid_ssl_certificate_files PASSED [ 23%] tests/test_requests.py::TestRequests::test_http_with_certificate PASSED [ 23%] tests/test_requests.py::TestRequests::test_certificate_failure PASSED [ 23%] tests/test_requests.py::TestRequests::test_urlencoded_get_query_multivalued_param PASSED [ 23%] tests/test_requests.py::TestRequests::test_form_encoded_post_query_multivalued_element PASSED [ 23%] tests/test_requests.py::TestRequests::test_different_encodings_dont_break_post PASSED [ 23%] tests/test_requests.py::TestRequests::test_unicode_multipart_post[data0] PASSED [ 24%] tests/test_requests.py::TestRequests::test_unicode_multipart_post[data1] PASSED [ 24%] tests/test_requests.py::TestRequests::test_unicode_multipart_post[data2] PASSED [ 24%] tests/test_requests.py::TestRequests::test_unicode_multipart_post[data3] PASSED [ 24%] tests/test_requests.py::TestRequests::test_unicode_multipart_post_fieldnames PASSED [ 24%] tests/test_requests.py::TestRequests::test_unicode_method_name PASSED [ 25%] tests/test_requests.py::TestRequests::test_unicode_method_name_with_request_object PASSED [ 25%] tests/test_requests.py::TestRequests::test_non_prepared_request_error PASSED [ 25%] tests/test_requests.py::TestRequests::test_custom_content_type PASSED [ 25%] tests/test_requests.py::TestRequests::test_hook_receives_request_arguments PASSED [ 25%] tests/test_requests.py::TestRequests::test_session_hooks_are_used_with_no_request_hooks PASSED [ 25%] tests/test_requests.py::TestRequests::test_session_hooks_are_overridden_by_request_hooks PASSED [ 26%] tests/test_requests.py::TestRequests::test_prepared_request_hook PASSED [ 26%] tests/test_requests.py::TestRequests::test_prepared_from_session PASSED [ 26%] tests/test_requests.py::TestRequests::test_prepare_request_with_bytestring_url PASSED [ 26%] tests/test_requests.py::TestRequests::test_request_with_bytestring_host PASSED [ 26%] tests/test_requests.py::TestRequests::test_links PASSED [ 27%] tests/test_requests.py::TestRequests::test_cookie_parameters PASSED [ 27%] tests/test_requests.py::TestRequests::test_cookie_as_dict_keeps_len PASSED [ 27%] tests/test_requests.py::TestRequests::test_cookie_as_dict_keeps_items PASSED [ 27%] tests/test_requests.py::TestRequests::test_cookie_as_dict_keys PASSED [ 27%] tests/test_requests.py::TestRequests::test_cookie_as_dict_values PASSED [ 28%] tests/test_requests.py::TestRequests::test_cookie_as_dict_items PASSED [ 28%] tests/test_requests.py::TestRequests::test_cookie_duplicate_names_different_domains PASSED [ 28%] tests/test_requests.py::TestRequests::test_cookie_duplicate_names_raises_cookie_conflict_error PASSED [ 28%] tests/test_requests.py::TestRequests::test_cookie_policy_copy PASSED [ 28%] tests/test_requests.py::TestRequests::test_time_elapsed_blank PASSED [ 28%] tests/test_requests.py::TestRequests::test_empty_response_has_content_none PASSED [ 29%] tests/test_requests.py::TestRequests::test_response_is_iterable PASSED [ 29%] tests/test_requests.py::TestRequests::test_response_decode_unicode PASSED [ 29%] tests/test_requests.py::TestRequests::test_response_reason_unicode PASSED [ 29%] tests/test_requests.py::TestRequests::test_response_reason_unicode_fallback PASSED [ 29%] tests/test_requests.py::TestRequests::test_response_chunk_size_type PASSED [ 30%] tests/test_requests.py::TestRequests::test_request_and_response_are_pickleable PASSED [ 30%] tests/test_requests.py::TestRequests::test_prepared_request_is_pickleable PASSED [ 30%] tests/test_requests.py::TestRequests::test_prepared_request_with_file_is_pickleable PASSED [ 30%] tests/test_requests.py::TestRequests::test_prepared_request_with_hook_is_pickleable PASSED [ 30%] tests/test_requests.py::TestRequests::test_cannot_send_unprepared_requests PASSED [ 30%] tests/test_requests.py::TestRequests::test_http_error PASSED [ 31%] tests/test_requests.py::TestRequests::test_session_pickling PASSED [ 31%] tests/test_requests.py::TestRequests::test_fixes_1329 PASSED [ 31%] tests/test_requests.py::TestRequests::test_uppercase_scheme_redirect PASSED [ 31%] tests/test_requests.py::TestRequests::test_transport_adapter_ordering PASSED [ 31%] tests/test_requests.py::TestRequests::test_session_get_adapter_prefix_matching PASSED [ 32%] tests/test_requests.py::TestRequests::test_session_get_adapter_prefix_matching_mixed_case PASSED [ 32%] tests/test_requests.py::TestRequests::test_session_get_adapter_prefix_matching_is_case_insensitive PASSED [ 32%] tests/test_requests.py::TestRequests::test_header_remove_is_case_insensitive PASSED [ 32%] tests/test_requests.py::TestRequests::test_params_are_merged_case_sensitive PASSED [ 32%] tests/test_requests.py::TestRequests::test_long_authinfo_in_url PASSED [ 33%] tests/test_requests.py::TestRequests::test_header_keys_are_native PASSED [ 33%] tests/test_requests.py::TestRequests::test_header_validation PASSED [ 33%] tests/test_requests.py::TestRequests::test_header_value_not_str PASSED [ 33%] tests/test_requests.py::TestRequests::test_header_no_return_chars PASSED [ 33%] tests/test_requests.py::TestRequests::test_header_no_leading_space PASSED [ 33%] tests/test_requests.py::TestRequests::test_can_send_objects_with_files[foo0] PASSED [ 34%] tests/test_requests.py::TestRequests::test_can_send_objects_with_files[foo1] PASSED [ 34%] tests/test_requests.py::TestRequests::test_can_send_objects_with_files[files2] PASSED [ 34%] tests/test_requests.py::TestRequests::test_can_send_file_object_with_non_string_filename PASSED [ 34%] tests/test_requests.py::TestRequests::test_autoset_header_values_are_native PASSED [ 34%] tests/test_requests.py::TestRequests::test_nonhttp_schemes_dont_check_URLs PASSED [ 35%] tests/test_requests.py::TestRequests::test_auth_is_stripped_on_http_downgrade PASSED [ 35%] tests/test_requests.py::TestRequests::test_auth_is_retained_for_redirect_on_host PASSED [ 35%] tests/test_requests.py::TestRequests::test_should_strip_auth_host_change PASSED [ 35%] tests/test_requests.py::TestRequests::test_should_strip_auth_http_downgrade PASSED [ 35%] tests/test_requests.py::TestRequests::test_should_strip_auth_https_upgrade PASSED [ 35%] tests/test_requests.py::TestRequests::test_should_strip_auth_port_change PASSED [ 36%] tests/test_requests.py::TestRequests::test_should_strip_auth_default_port[https://example.com:443/foo-https://example.com/bar] PASSED [ 36%] tests/test_requests.py::TestRequests::test_should_strip_auth_default_port[http://example.com:80/foo-http://example.com/bar] PASSED [ 36%] tests/test_requests.py::TestRequests::test_should_strip_auth_default_port[https://example.com/foo-https://example.com:443/bar] PASSED [ 36%] tests/test_requests.py::TestRequests::test_should_strip_auth_default_port[http://example.com/foo-http://example.com:80/bar] PASSED [ 36%] tests/test_requests.py::TestRequests::test_manual_redirect_with_partial_body_read PASSED [ 37%] tests/test_requests.py::TestRequests::test_prepare_body_position_non_stream PASSED [ 37%] tests/test_requests.py::TestRequests::test_rewind_body PASSED [ 37%] tests/test_requests.py::TestRequests::test_rewind_partially_read_body PASSED [ 37%] tests/test_requests.py::TestRequests::test_rewind_body_no_seek PASSED [ 37%] tests/test_requests.py::TestRequests::test_rewind_body_failed_seek PASSED [ 38%] tests/test_requests.py::TestRequests::test_rewind_body_failed_tell PASSED [ 38%] tests/test_requests.py::TestRequests::test_redirect_with_wrong_gzipped_header PASSED [ 38%] tests/test_requests.py::TestRequests::test_basic_auth_str_is_always_native[test-test-Basic dGVzdDp0ZXN0] PASSED [ 38%] tests/test_requests.py::TestRequests::test_basic_auth_str_is_always_native[\xd0\xb8\xd0\xbc\xd1\x8f-\xd0\xbf\xd0\xb0\xd1\x80\xd0\xbe\xd0\xbb\xd1\x8c-Basic 0LjQvNGPOtC/0LDRgNC+0LvRjA==] PASSED [ 38%] tests/test_requests.py::TestRequests::test_requests_history_is_saved PASSED [ 38%] tests/test_requests.py::TestRequests::test_json_param_post_content_type_works PASSED [ 39%] tests/test_requests.py::TestRequests::test_json_param_post_should_not_override_data_param PASSED [ 39%] tests/test_requests.py::TestRequests::test_response_iter_lines PASSED [ 39%] tests/test_requests.py::TestRequests::test_response_context_manager PASSED [ 39%] tests/test_requests.py::TestRequests::test_unconsumed_session_response_closes_connection PASSED [ 39%] tests/test_requests.py::TestRequests::test_response_iter_lines_reentrant XFAIL [ 40%] tests/test_requests.py::TestRequests::test_session_close_proxy_clear PASSED [ 40%] tests/test_requests.py::TestRequests::test_proxy_auth PASSED [ 40%] tests/test_requests.py::TestRequests::test_proxy_auth_empty_pass PASSED [ 40%] tests/test_requests.py::TestRequests::test_response_json_when_content_is_None PASSED [ 40%] tests/test_requests.py::TestRequests::test_response_without_release_conn PASSED [ 41%] tests/test_requests.py::TestRequests::test_empty_stream_with_auth_does_not_set_content_length_header PASSED [ 41%] tests/test_requests.py::TestRequests::test_stream_with_auth_does_not_set_transfer_encoding_header PASSED [ 41%] tests/test_requests.py::TestRequests::test_chunked_upload_does_not_set_content_length_header PASSED [ 41%] tests/test_requests.py::TestRequests::test_custom_redirect_mixin PASSED [ 41%] tests/test_requests.py::TestCaseInsensitiveDict::test_init[cid0] PASSED [ 41%] tests/test_requests.py::TestCaseInsensitiveDict::test_init[cid1] PASSED [ 42%] tests/test_requests.py::TestCaseInsensitiveDict::test_init[cid2] PASSED [ 42%] tests/test_requests.py::TestCaseInsensitiveDict::test_docstring_example PASSED [ 42%] tests/test_requests.py::TestCaseInsensitiveDict::test_len PASSED [ 42%] tests/test_requests.py::TestCaseInsensitiveDict::test_getitem PASSED [ 42%] tests/test_requests.py::TestCaseInsensitiveDict::test_fixes_649 PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_delitem PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_contains PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_get PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_update PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_update_retains_unchanged PASSED [ 43%] tests/test_requests.py::TestCaseInsensitiveDict::test_iter PASSED [ 44%] tests/test_requests.py::TestCaseInsensitiveDict::test_equality PASSED [ 44%] tests/test_requests.py::TestCaseInsensitiveDict::test_setdefault PASSED [ 44%] tests/test_requests.py::TestCaseInsensitiveDict::test_lower_items PASSED [ 44%] tests/test_requests.py::TestCaseInsensitiveDict::test_preserve_key_case PASSED [ 44%] tests/test_requests.py::TestCaseInsensitiveDict::test_preserve_last_key_case PASSED [ 45%] tests/test_requests.py::TestCaseInsensitiveDict::test_copy PASSED [ 45%] tests/test_requests.py::TestMorselToCookieExpires::test_expires_valid_str PASSED [ 45%] tests/test_requests.py::TestMorselToCookieExpires::test_expires_invalid_int[100-TypeError] PASSED [ 45%] tests/test_requests.py::TestMorselToCookieExpires::test_expires_invalid_int[woops-ValueError] PASSED [ 45%] tests/test_requests.py::TestMorselToCookieExpires::test_expires_none PASSED [ 46%] tests/test_requests.py::TestMorselToCookieMaxAge::test_max_age_valid_int PASSED [ 46%] tests/test_requests.py::TestMorselToCookieMaxAge::test_max_age_invalid_str PASSED [ 46%] tests/test_requests.py::TestTimeout::test_stream_timeout PASSED [ 46%] tests/test_requests.py::TestTimeout::test_invalid_timeout[timeout0-(connect, read)] PASSED [ 46%] tests/test_requests.py::TestTimeout::test_invalid_timeout[foo-must be an int, float or None] PASSED [ 46%] tests/test_requests.py::TestTimeout::test_none_timeout[None] PASSED [ 47%] tests/test_requests.py::TestTimeout::test_none_timeout[timeout1] PASSED [ 47%] tests/test_requests.py::TestTimeout::test_read_timeout[timeout0] PASSED [ 47%] tests/test_requests.py::TestTimeout::test_read_timeout[timeout1] PASSED [ 47%] tests/test_requests.py::TestTimeout::test_encoded_methods PASSED [ 47%] tests/test_requests.py::test_json_encodes_as_bytes PASSED [ 48%] tests/test_requests.py::test_requests_are_updated_each_time PASSED [ 48%] tests/test_requests.py::test_proxy_env_vars_override_default[http_proxy-http://example.com-socks5://proxy.com:9876] PASSED [ 48%] tests/test_requests.py::test_proxy_env_vars_override_default[https_proxy-https://example.com-socks5://proxy.com:9876] PASSED [ 48%] tests/test_requests.py::test_proxy_env_vars_override_default[all_proxy-http://example.com-socks5://proxy.com:9876] PASSED [ 48%] tests/test_requests.py::test_proxy_env_vars_override_default[all_proxy-https://example.com-socks5://proxy.com:9876] PASSED [ 48%] tests/test_requests.py::test_data_argument_accepts_tuples[data0] PASSED [ 49%] tests/test_requests.py::test_data_argument_accepts_tuples[data1] PASSED [ 49%] tests/test_requests.py::test_data_argument_accepts_tuples[data2] PASSED [ 49%] tests/test_requests.py::test_prepared_copy[None] PASSED [ 49%] tests/test_requests.py::test_prepared_copy[kwargs1] PASSED [ 49%] tests/test_requests.py::test_prepared_copy[kwargs2] PASSED [ 50%] tests/test_requests.py::test_prepared_copy[kwargs3] PASSED [ 50%] tests/test_requests.py::test_urllib3_retries PASSED [ 50%] tests/test_requests.py::test_urllib3_pool_connection_closed PASSED [ 50%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://google.com-http://google.com/] PASSED [ 50%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://\u30b8\u30a7\u30fc\u30d4\u30fc\u30cb\u30c3\u30af.jp-http://xn--hckqz9bzb1cyrb.jp/] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://xn--n3h.net/-http://xn--n3h.net/0] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://\xe3\x82\xb8\xe3\x82\xa7\xe3\x83\xbc\xe3\x83\x94\xe3\x83\xbc\xe3\x83\x8b\xe3\x83\x83\xe3\x82\xaf.jp-http://xn--hckqz9bzb1cyrb.jp/] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://stra\xdfe.de/stra\xdfe-http://xn--strae-oqa.de/stra%C3%9Fe] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://stra\xc3\x9fe.de/stra\xc3\x9fe-http://xn--strae-oqa.de/stra%C3%9Fe] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://K\xf6nigsg\xe4\xdfchen.de/stra\xdfe-http://xn--knigsgchen-b4a3dun.de/stra%C3%9Fe] PASSED [ 51%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://K\xc3\xb6nigsg\xc3\xa4\xc3\x9fchen.de/stra\xc3\x9fe-http://xn--knigsgchen-b4a3dun.de/stra%C3%9Fe] PASSED [ 52%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://xn--n3h.net/-http://xn--n3h.net/1] PASSED [ 52%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://[1200:0000:ab00:1234:0000:2552:7777:1313]:12345/-http://[1200:0000:ab00:1234:0000:2552:7777:1313]:12345/0] PASSED [ 52%] tests/test_requests.py::TestPreparingURLs::test_preparing_url[http://[1200:0000:ab00:1234:0000:2552:7777:1313]:12345/-http://[1200:0000:ab00:1234:0000:2552:7777:1313]:12345/1] PASSED [ 52%] tests/test_requests.py::TestPreparingURLs::test_preparing_bad_url[http://*.google.com0] PASSED [ 52%] tests/test_requests.py::TestPreparingURLs::test_preparing_bad_url[http://*0] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_preparing_bad_url[http://*.google.com1] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_preparing_bad_url[http://*1] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_preparing_bad_url[http://\u2603.net/] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_redirecting_to_bad_url[http://localhost:-1-InvalidURL] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_url_mutation[http+unix://%2Fvar%2Frun%2Fsocket/path%7E-http+unix://%2Fvar%2Frun%2Fsocket/path~0] PASSED [ 53%] tests/test_requests.py::TestPreparingURLs::test_url_mutation[http+unix://%2Fvar%2Frun%2Fsocket/path%7E-http+unix://%2Fvar%2Frun%2Fsocket/path~1] PASSED [ 54%] tests/test_requests.py::TestPreparingURLs::test_url_mutation[mailto:user@example.org-mailto:user@example.org0] PASSED [ 54%] tests/test_requests.py::TestPreparingURLs::test_url_mutation[mailto:user@example.org-mailto:user@example.org1] PASSED [ 54%] tests/test_requests.py::TestPreparingURLs::test_url_mutation[data:SSDimaUgUHl0aG9uIQ==-data:SSDimaUgUHl0aG9uIQ==] PASSED [ 54%] tests/test_requests.py::TestPreparingURLs::test_parameters_for_nonstandard_schemes[http+unix://%2Fvar%2Frun%2Fsocket/path-params0-http+unix://%2Fvar%2Frun%2Fsocket/path?key=value] PASSED [ 54%] tests/test_requests.py::TestPreparingURLs::test_parameters_for_nonstandard_schemes[http+unix://%2Fvar%2Frun%2Fsocket/path-params1-http+unix://%2Fvar%2Frun%2Fsocket/path?key=value] PASSED [ 55%] tests/test_requests.py::TestPreparingURLs::test_parameters_for_nonstandard_schemes[mailto:user@example.org-params2-mailto:user@example.org] PASSED [ 55%] tests/test_requests.py::TestPreparingURLs::test_parameters_for_nonstandard_schemes[mailto:user@example.org-params3-mailto:user@example.org] PASSED [ 55%] tests/test_structures.py::TestCaseInsensitiveDict::test_list PASSED [ 55%] tests/test_structures.py::TestCaseInsensitiveDict::test_getitem[accept] PASSED [ 55%] tests/test_structures.py::TestCaseInsensitiveDict::test_getitem[ACCEPT] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_getitem[aCcEpT] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_getitem[Accept] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_delitem[accept] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_delitem[ACCEPT] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_delitem[aCcEpT] PASSED [ 56%] tests/test_structures.py::TestCaseInsensitiveDict::test_delitem[Accept] PASSED [ 57%] tests/test_structures.py::TestCaseInsensitiveDict::test_lower_items PASSED [ 57%] tests/test_structures.py::TestCaseInsensitiveDict::test_repr PASSED [ 57%] tests/test_structures.py::TestCaseInsensitiveDict::test_copy PASSED [ 57%] tests/test_structures.py::TestCaseInsensitiveDict::test_instance_equality[other0-True] PASSED [ 57%] tests/test_structures.py::TestCaseInsensitiveDict::test_instance_equality[other1-False] PASSED [ 58%] tests/test_structures.py::TestCaseInsensitiveDict::test_instance_equality[None-False] PASSED [ 58%] tests/test_structures.py::TestLookupDict::test_repr PASSED [ 58%] tests/test_structures.py::TestLookupDict::test_getitem[bad_gateway-502] PASSED [ 58%] tests/test_structures.py::TestLookupDict::test_getitem[not_a_key-None] PASSED [ 58%] tests/test_structures.py::TestLookupDict::test_get[bad_gateway-502] PASSED [ 58%] tests/test_structures.py::TestLookupDict::test_get[not_a_key-None] PASSED [ 59%] tests/test_testserver.py::TestTestServer::test_basic PASSED [ 59%] tests/test_testserver.py::TestTestServer::test_server_closes PASSED [ 59%] tests/test_testserver.py::TestTestServer::test_text_response PASSED [ 59%] tests/test_testserver.py::TestTestServer::test_basic_response PASSED [ 59%] tests/test_testserver.py::TestTestServer::test_basic_waiting_server PASSED [ 60%] tests/test_testserver.py::TestTestServer::test_multiple_requests PASSED [ 60%] tests/test_testserver.py::TestTestServer::test_request_recovery SKIPPED [ 60%] tests/test_testserver.py::TestTestServer::test_requests_after_timeout_are_not_received PASSED [ 60%] tests/test_testserver.py::TestTestServer::test_request_recovery_with_bigger_timeout PASSED [ 60%] tests/test_testserver.py::TestTestServer::test_server_finishes_on_error PASSED [ 61%] tests/test_testserver.py::TestTestServer::test_server_finishes_when_no_connections PASSED [ 61%] tests/test_utils.py::TestSuperLen::test_io_streams[StringIO-Test] PASSED [ 61%] tests/test_utils.py::TestSuperLen::test_io_streams[BytesIO-Test] PASSED [ 61%] tests/test_utils.py::TestSuperLen::test_io_streams[None-Test] SKIPPED [ 61%] tests/test_utils.py::TestSuperLen::test_super_len_correctly_calculates_len_of_partially_read_file PASSED [ 61%] tests/test_utils.py::TestSuperLen::test_super_len_handles_files_raising_weird_errors_in_tell[OSError0] PASSED [ 62%] tests/test_utils.py::TestSuperLen::test_super_len_handles_files_raising_weird_errors_in_tell[OSError1] PASSED [ 62%] tests/test_utils.py::TestSuperLen::test_super_len_tell_ioerror[OSError0] PASSED [ 62%] tests/test_utils.py::TestSuperLen::test_super_len_tell_ioerror[OSError1] PASSED [ 62%] tests/test_utils.py::TestSuperLen::test_string PASSED [ 62%] tests/test_utils.py::TestSuperLen::test_file[r-1] PASSED [ 63%] tests/test_utils.py::TestSuperLen::test_file[rb-0] PASSED [ 63%] tests/test_utils.py::TestSuperLen::test_super_len_with__len__ PASSED [ 63%] tests/test_utils.py::TestSuperLen::test_super_len_with_no__len__ PASSED [ 63%] tests/test_utils.py::TestSuperLen::test_super_len_with_tell PASSED [ 63%] tests/test_utils.py::TestSuperLen::test_super_len_with_fileno PASSED [ 64%] tests/test_utils.py::TestSuperLen::test_super_len_with_no_matches PASSED [ 64%] tests/test_utils.py::TestToKeyValList::test_valid[value0-expected0] PASSED [ 64%] tests/test_utils.py::TestToKeyValList::test_valid[value1-expected1] PASSED [ 64%] tests/test_utils.py::TestToKeyValList::test_valid[value2-expected2] PASSED [ 64%] tests/test_utils.py::TestToKeyValList::test_valid[None-None] PASSED [ 64%] tests/test_utils.py::TestToKeyValList::test_invalid PASSED [ 65%] tests/test_utils.py::TestUnquoteHeaderValue::test_valid[None-None] PASSED [ 65%] tests/test_utils.py::TestUnquoteHeaderValue::test_valid[Test-Test] PASSED [ 65%] tests/test_utils.py::TestUnquoteHeaderValue::test_valid["Test"-Test] PASSED [ 65%] tests/test_utils.py::TestUnquoteHeaderValue::test_valid["Test\\\\"-Test\\] PASSED [ 65%] tests/test_utils.py::TestUnquoteHeaderValue::test_valid["\\\\Comp\\Res"-\\Comp\\Res] PASSED [ 66%] tests/test_utils.py::TestUnquoteHeaderValue::test_is_filename PASSED [ 66%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[no_proxy-http://192.168.0.1:5000/] PASSED [ 66%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[no_proxy-http://192.168.0.1/] PASSED [ 66%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[no_proxy-http://172.16.1.1/] PASSED [ 66%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[no_proxy-http://172.16.1.1:5000/] PASSED [ 66%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[no_proxy-http://localhost.localdomain:5000/v1.0/] PASSED [ 67%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[NO_PROXY-http://192.168.0.1:5000/] PASSED [ 67%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[NO_PROXY-http://192.168.0.1/] PASSED [ 67%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[NO_PROXY-http://172.16.1.1/] PASSED [ 67%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[NO_PROXY-http://172.16.1.1:5000/] PASSED [ 67%] tests/test_utils.py::TestGetEnvironProxies::test_bypass[NO_PROXY-http://localhost.localdomain:5000/v1.0/] PASSED [ 68%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[no_proxy-http://192.168.1.1:5000/] PASSED [ 68%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[no_proxy-http://192.168.1.1/] PASSED [ 68%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[no_proxy-http://www.requests.com/] PASSED [ 68%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[NO_PROXY-http://192.168.1.1:5000/] PASSED [ 68%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[NO_PROXY-http://192.168.1.1/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass[NO_PROXY-http://www.requests.com/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[no_proxy-http://192.168.1.1:5000/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[no_proxy-http://192.168.1.1/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[no_proxy-http://www.requests.com/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[NO_PROXY-http://192.168.1.1:5000/] PASSED [ 69%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[NO_PROXY-http://192.168.1.1/] PASSED [ 70%] tests/test_utils.py::TestGetEnvironProxies::test_bypass_no_proxy_keyword[NO_PROXY-http://www.requests.com/] PASSED [ 70%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[no_proxy-http://192.168.0.1:5000/] PASSED [ 70%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[no_proxy-http://192.168.0.1/] PASSED [ 70%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[no_proxy-http://172.16.1.1/] PASSED [ 70%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[no_proxy-http://172.16.1.1:5000/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[no_proxy-http://localhost.localdomain:5000/v1.0/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[NO_PROXY-http://192.168.0.1:5000/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[NO_PROXY-http://192.168.0.1/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[NO_PROXY-http://172.16.1.1/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[NO_PROXY-http://172.16.1.1:5000/] PASSED [ 71%] tests/test_utils.py::TestGetEnvironProxies::test_not_bypass_no_proxy_keyword[NO_PROXY-http://localhost.localdomain:5000/v1.0/] PASSED [ 72%] tests/test_utils.py::TestIsIPv4Address::test_valid PASSED [ 72%] tests/test_utils.py::TestIsIPv4Address::test_invalid[8.8.8.8.8] PASSED [ 72%] tests/test_utils.py::TestIsIPv4Address::test_invalid[localhost.localdomain] PASSED [ 72%] tests/test_utils.py::TestIsValidCIDR::test_valid PASSED [ 72%] tests/test_utils.py::TestIsValidCIDR::test_invalid[8.8.8.8] PASSED [ 73%] tests/test_utils.py::TestIsValidCIDR::test_invalid[192.168.1.0/a] PASSED [ 73%] tests/test_utils.py::TestIsValidCIDR::test_invalid[192.168.1.0/128] PASSED [ 73%] tests/test_utils.py::TestIsValidCIDR::test_invalid[192.168.1.0/-1] PASSED [ 73%] tests/test_utils.py::TestIsValidCIDR::test_invalid[192.168.1.999/24] PASSED [ 73%] tests/test_utils.py::TestAddressInNetwork::test_valid PASSED [ 74%] tests/test_utils.py::TestAddressInNetwork::test_invalid PASSED [ 74%] tests/test_utils.py::TestGuessFilename::test_guess_filename_invalid[1] PASSED [ 74%] tests/test_utils.py::TestGuessFilename::test_guess_filename_invalid[value1] PASSED [ 74%] tests/test_utils.py::TestGuessFilename::test_guess_filename_valid[value-bytes] PASSED [ 74%] tests/test_utils.py::TestGuessFilename::test_guess_filename_valid[value-str] PASSED [ 74%] tests/test_utils.py::TestExtractZippedPaths::test_unzipped_paths_unchanged[/] PASSED [ 75%] tests/test_utils.py::TestExtractZippedPaths::test_unzipped_paths_unchanged[/var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0/tests/test_utils.py] PASSED [ 75%] tests/test_utils.py::TestExtractZippedPaths::test_unzipped_paths_unchanged[/usr/lib/python3.6/site-packages/pytest.py] PASSED [ 75%] tests/test_utils.py::TestExtractZippedPaths::test_unzipped_paths_unchanged[/etc/invalid/location] PASSED [ 75%] tests/test_utils.py::TestExtractZippedPaths::test_zipped_paths_extracted PASSED [ 75%] tests/test_utils.py::TestContentEncodingDetection::test_none PASSED [ 76%] tests/test_utils.py::TestContentEncodingDetection::test_pragmas[] PASSED [ 76%] tests/test_utils.py::TestContentEncodingDetection::test_pragmas[] PASSED [ 76%] tests/test_utils.py::TestContentEncodingDetection::test_pragmas[] PASSED [ 76%] tests/test_utils.py::TestContentEncodingDetection::test_pragmas[] PASSED [ 76%] tests/test_utils.py::TestContentEncodingDetection::test_precedence PASSED [ 76%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-32] PASSED [ 77%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-8-sig] PASSED [ 77%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-16] PASSED [ 77%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-8] PASSED [ 77%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-16-be] PASSED [ 77%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-16-le] PASSED [ 78%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-32-be] PASSED [ 78%] tests/test_utils.py::TestGuessJSONUTF::test_encoded[utf-32-le] PASSED [ 78%] tests/test_utils.py::TestGuessJSONUTF::test_bad_utf_like_encoding PASSED [ 78%] tests/test_utils.py::TestGuessJSONUTF::test_guess_by_bom[utf-16-be-utf-16] PASSED [ 78%] tests/test_utils.py::TestGuessJSONUTF::test_guess_by_bom[utf-16-le-utf-16] PASSED [ 79%] tests/test_utils.py::TestGuessJSONUTF::test_guess_by_bom[utf-32-be-utf-32] PASSED [ 79%] tests/test_utils.py::TestGuessJSONUTF::test_guess_by_bom[utf-32-le-utf-32] PASSED [ 79%] tests/test_utils.py::test_get_auth_from_url[http://%25%21%2A%27%28%29%3B%3A%40%26%3D%2B%24%2C%2F%3F%23%5B%5D%20:%25%21%2A%27%28%29%3B%3A%40%26%3D%2B%24%2C%2F%3F%23%5B%5D%20@request.com/url.html#test-auth0] PASSED [ 79%] tests/test_utils.py::test_get_auth_from_url[http://user:pass@complex.url.com/path?query=yes-auth1] PASSED [ 79%] tests/test_utils.py::test_get_auth_from_url[http://user:pass%20pass@complex.url.com/path?query=yes-auth2] PASSED [ 79%] tests/test_utils.py::test_get_auth_from_url[http://user:pass pass@complex.url.com/path?query=yes-auth3] PASSED [ 80%] tests/test_utils.py::test_get_auth_from_url[http://user%25user:pass@complex.url.com/path?query=yes-auth4] PASSED [ 80%] tests/test_utils.py::test_get_auth_from_url[http://user:pass%23pass@complex.url.com/path?query=yes-auth5] PASSED [ 80%] tests/test_utils.py::test_get_auth_from_url[http://complex.url.com/path?query=yes-auth6] PASSED [ 80%] tests/test_utils.py::test_requote_uri_with_unquoted_percents[http://example.com/fiz?buz=%25ppicture-http://example.com/fiz?buz=%25ppicture] PASSED [ 80%] tests/test_utils.py::test_requote_uri_with_unquoted_percents[http://example.com/fiz?buz=%ppicture-http://example.com/fiz?buz=%25ppicture] PASSED [ 81%] tests/test_utils.py::test_unquote_unreserved[http://example.com/?a=%---http://example.com/?a=%--] PASSED [ 81%] tests/test_utils.py::test_unquote_unreserved[http://example.com/?a=%300-http://example.com/?a=00] PASSED [ 81%] tests/test_utils.py::test_dotted_netmask[8-255.0.0.0] PASSED [ 81%] tests/test_utils.py::test_dotted_netmask[24-255.255.255.0] PASSED [ 81%] tests/test_utils.py::test_dotted_netmask[25-255.255.255.128] PASSED [ 82%] tests/test_utils.py::test_select_proxies[hTTp://u:p@Some.Host/path-http://some.host.proxy-proxies0] PASSED [ 82%] tests/test_utils.py::test_select_proxies[hTTp://u:p@Other.Host/path-http://http.proxy-proxies1] PASSED [ 82%] tests/test_utils.py::test_select_proxies[hTTp:///path-http://http.proxy-proxies2] PASSED [ 82%] tests/test_utils.py::test_select_proxies[hTTps://Other.Host-None-proxies3] PASSED [ 82%] tests/test_utils.py::test_select_proxies[file:///etc/motd-None-proxies4] PASSED [ 82%] tests/test_utils.py::test_select_proxies[hTTp://u:p@Some.Host/path-socks5://some.host.proxy-proxies5] PASSED [ 83%] tests/test_utils.py::test_select_proxies[hTTp://u:p@Other.Host/path-socks5://http.proxy-proxies6] PASSED [ 83%] tests/test_utils.py::test_select_proxies[hTTp:///path-socks5://http.proxy-proxies7] PASSED [ 83%] tests/test_utils.py::test_select_proxies[hTTps://Other.Host-socks5://http.proxy-proxies8] PASSED [ 83%] tests/test_utils.py::test_select_proxies[http://u:p@other.host/path-http://http.proxy-proxies9] PASSED [ 83%] tests/test_utils.py::test_select_proxies[http://u:p@some.host/path-http://some.host.proxy-proxies10] PASSED [ 84%] tests/test_utils.py::test_select_proxies[https://u:p@other.host/path-socks5://http.proxy-proxies11] PASSED [ 84%] tests/test_utils.py::test_select_proxies[https://u:p@some.host/path-socks5://http.proxy-proxies12] PASSED [ 84%] tests/test_utils.py::test_select_proxies[https://-socks5://http.proxy-proxies13] PASSED [ 84%] tests/test_utils.py::test_select_proxies[file:///etc/motd-socks5://http.proxy-proxies14] PASSED [ 84%] tests/test_utils.py::test_parse_dict_header[foo="is a fish", bar="as well"-expected0] PASSED [ 84%] tests/test_utils.py::test_parse_dict_header[key_without_value-expected1] PASSED [ 85%] tests/test_utils.py::test__parse_content_type_header[application/xml-expected0] PASSED [ 85%] tests/test_utils.py::test__parse_content_type_header[application/json ; charset=utf-8-expected1] PASSED [ 85%] tests/test_utils.py::test__parse_content_type_header[application/json ; Charset=utf-8-expected2] PASSED [ 85%] tests/test_utils.py::test__parse_content_type_header[text/plain-expected3] PASSED [ 85%] tests/test_utils.py::test__parse_content_type_header[multipart/form-data; boundary = something ; boundary2='something_else' ; no_equals -expected4] PASSED [ 86%] tests/test_utils.py::test__parse_content_type_header[multipart/form-data; boundary = something ; boundary2="something_else" ; no_equals -expected5] PASSED [ 86%] tests/test_utils.py::test__parse_content_type_header[multipart/form-data; boundary = something ; 'boundary2=something_else' ; no_equals -expected6] PASSED [ 86%] tests/test_utils.py::test__parse_content_type_header[multipart/form-data; boundary = something ; "boundary2=something_else" ; no_equals -expected7] PASSED [ 86%] tests/test_utils.py::test__parse_content_type_header[application/json ; ; -expected8] PASSED [ 86%] tests/test_utils.py::test_get_encoding_from_headers[value0-None] PASSED [ 87%] tests/test_utils.py::test_get_encoding_from_headers[value1-utf-8] PASSED [ 87%] tests/test_utils.py::test_get_encoding_from_headers[value2-ISO-8859-1] PASSED [ 87%] tests/test_utils.py::test_iter_slices[-0] PASSED [ 87%] tests/test_utils.py::test_iter_slices[T-1] PASSED [ 87%] tests/test_utils.py::test_iter_slices[Test-4] PASSED [ 87%] tests/test_utils.py::test_iter_slices[Cont-0] PASSED [ 88%] tests/test_utils.py::test_iter_slices[Other--5] PASSED [ 88%] tests/test_utils.py::test_iter_slices[Content-None] PASSED [ 88%] tests/test_utils.py::test_parse_header_links[; rel=front; type="image/jpeg"-expected0] PASSED [ 88%] tests/test_utils.py::test_parse_header_links[-expected1] PASSED [ 88%] tests/test_utils.py::test_parse_header_links[;-expected2] PASSED [ 89%] tests/test_utils.py::test_parse_header_links[; type="image/jpeg",;-expected3] PASSED [ 89%] tests/test_utils.py::test_parse_header_links[-expected4] PASSED [ 89%] tests/test_utils.py::test_prepend_scheme_if_needed[example.com/path-http://example.com/path] PASSED [ 89%] tests/test_utils.py::test_prepend_scheme_if_needed[//example.com/path-http://example.com/path] PASSED [ 89%] tests/test_utils.py::test_to_native_string[T-T0] PASSED [ 89%] tests/test_utils.py::test_to_native_string[T-T1] PASSED [ 90%] tests/test_utils.py::test_to_native_string[T-T2] PASSED [ 90%] tests/test_utils.py::test_urldefragauth[http://u:p@example.com/path?a=1#test-http://example.com/path?a=1] PASSED [ 90%] tests/test_utils.py::test_urldefragauth[http://example.com/path-http://example.com/path] PASSED [ 90%] tests/test_utils.py::test_urldefragauth[//u:p@example.com/path-//example.com/path] PASSED [ 90%] tests/test_utils.py::test_urldefragauth[//example.com/path-//example.com/path] PASSED [ 91%] tests/test_utils.py::test_urldefragauth[example.com/path-//example.com/path] PASSED [ 91%] tests/test_utils.py::test_urldefragauth[scheme:u:p@example.com/path-scheme://example.com/path] PASSED [ 91%] tests/test_utils.py::test_should_bypass_proxies[http://192.168.0.1:5000/-True] PASSED [ 91%] tests/test_utils.py::test_should_bypass_proxies[http://192.168.0.1/-True] PASSED [ 91%] tests/test_utils.py::test_should_bypass_proxies[http://172.16.1.1/-True] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://172.16.1.1:5000/-True] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://localhost.localdomain:5000/v1.0/-True] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://google.com:6000/-True] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://172.16.1.12/-False] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://172.16.1.12:5000/-False] PASSED [ 92%] tests/test_utils.py::test_should_bypass_proxies[http://google.com:5000/v1.0/-False] PASSED [ 93%] tests/test_utils.py::test_should_bypass_proxies[file:///some/path/on/disk-True] PASSED [ 93%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://172.16.1.1/-172.16.1.1] PASSED [ 93%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://172.16.1.1:5000/-172.16.1.1] PASSED [ 93%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://user:pass@172.16.1.1-172.16.1.1] PASSED [ 93%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://user:pass@172.16.1.1:5000-172.16.1.1] PASSED [ 94%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://hostname/-hostname] PASSED [ 94%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://hostname:5000/-hostname] PASSED [ 94%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://user:pass@hostname-hostname] PASSED [ 94%] tests/test_utils.py::test_should_bypass_proxies_pass_only_hostname[http://user:pass@hostname:5000-hostname] PASSED [ 94%] tests/test_utils.py::test_add_dict_to_cookiejar[cookiejar0] PASSED [ 94%] tests/test_utils.py::test_add_dict_to_cookiejar[cookiejar1] PASSED [ 95%] tests/test_utils.py::test_unicode_is_ascii[test-True] PASSED [ 95%] tests/test_utils.py::test_unicode_is_ascii[\xe6\xed\xf6\xfb-False] PASSED [ 95%] tests/test_utils.py::test_unicode_is_ascii[\u30b8\u30a7\u30fc\u30d4\u30fc\u30cb\u30c3\u30af-False] PASSED [ 95%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://192.168.0.1:5000/-True] PASSED [ 95%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://192.168.0.1/-True] PASSED [ 96%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://172.16.1.1/-True] PASSED [ 96%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://172.16.1.1:5000/-True] PASSED [ 96%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://localhost.localdomain:5000/v1.0/-True] PASSED [ 96%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://172.16.1.12/-False] PASSED [ 96%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://172.16.1.12:5000/-False] PASSED [ 97%] tests/test_utils.py::test_should_bypass_proxies_no_proxy[http://google.com:5000/v1.0/-False] PASSED [ 97%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://192.168.0.1:5000/-True-None] SKIPPED [ 97%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://192.168.0.1/-True-None] SKIPPED [ 97%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://172.16.1.1/-True-None] SKIPPED [ 97%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://172.16.1.1:5000/-True-None] SKIPPED [ 97%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://localhost.localdomain:5000/v1.0/-True-None] SKIPPED [ 98%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://172.16.1.22/-False-None] SKIPPED [ 98%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://172.16.1.22:5000/-False-None] SKIPPED [ 98%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://google.com:5000/v1.0/-False-None] SKIPPED [ 98%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://mylocalhostname:5000/v1.0/-True-] SKIPPED [ 98%] tests/test_utils.py::test_should_bypass_proxies_win_registry[http://192.168.0.1/-False-] SKIPPED [ 99%] tests/test_utils.py::test_set_environ[no_proxy-192.168.0.0/24,127.0.0.1,localhost.localdomain] PASSED [ 99%] tests/test_utils.py::test_set_environ[no_proxy-None] PASSED [ 99%] tests/test_utils.py::test_set_environ[a_new_key-192.168.0.0/24,127.0.0.1,localhost.localdomain] PASSED [ 99%] tests/test_utils.py::test_set_environ[a_new_key-None] PASSED [ 99%] tests/test_utils.py::test_set_environ_raises_exception PASSED [100%] =============================================================================================================================== FAILURES =============================================================================================================================== __________________________________________________________________________________________________________ test_use_proxy_from_environment[https_proxy-https] __________________________________________________________________________________________________________ httpbin = .inner at 0xf7434270>, var = 'https_proxy', scheme = 'https' @pytest.mark.parametrize("var,scheme", _proxy_combos) def test_use_proxy_from_environment(httpbin, var, scheme): url = "{}://httpbin.org".format(scheme) fake_proxy = Server() # do nothing with the requests; just close the socket with fake_proxy as (host, port): proxy_url = "socks5://{}:{}".format(host, port) kwargs = {var: proxy_url} with override_environ(**kwargs): # fake proxy's lack of response will cause a ConnectionError with pytest.raises(requests.exceptions.ConnectionError): > requests.get(url) tests/test_lowlevel.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests/api.py:76: in get return request('get', url, params=params, **kwargs) requests/api.py:61: in request return session.request(method=method, url=url, **kwargs) requests/sessions.py:530: in request resp = self.send(prep, **send_kwargs) requests/sessions.py:643: in send r = adapter.send(request, **kwargs) requests/adapters.py:449: in send timeout=timeout /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:588: in urlopen conn = self._get_conn(timeout=pool_timeout) /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:248: in _get_conn return conn or self._new_conn() /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:832: in _new_conn strict=self.strict, **self.conn_kw) /usr/lib/python3.6/site-packages/urllib3/connection.py:233: in __init__ timeout=timeout, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , args = ('httpbin.org', 443), kw = {'_socks_options': {'password': '', 'proxy_host': 'localhost', 'proxy_port': 52209, 'rdns': False, ...}, 'timeout': } def __init__(self, *args, **kw): if six.PY3: # Python 3 kw.pop('strict', None) # Pre-set source_address. self.source_address = kw.get('source_address') #: The socket options provided by the user. If no options are #: provided, we use the default options. self.socket_options = kw.pop('socket_options', self.default_socket_options) > _HTTPConnection.__init__(self, *args, **kw) E TypeError: __init__() got an unexpected keyword argument '_socks_options' /usr/lib/python3.6/site-packages/urllib3/connection.py:114: TypeError ___________________________________________________________________________________________________________ test_use_proxy_from_environment[all_proxy-https] ___________________________________________________________________________________________________________ httpbin = .inner at 0xf73636f0>, var = 'all_proxy', scheme = 'https' @pytest.mark.parametrize("var,scheme", _proxy_combos) def test_use_proxy_from_environment(httpbin, var, scheme): url = "{}://httpbin.org".format(scheme) fake_proxy = Server() # do nothing with the requests; just close the socket with fake_proxy as (host, port): proxy_url = "socks5://{}:{}".format(host, port) kwargs = {var: proxy_url} with override_environ(**kwargs): # fake proxy's lack of response will cause a ConnectionError with pytest.raises(requests.exceptions.ConnectionError): > requests.get(url) tests/test_lowlevel.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests/api.py:76: in get return request('get', url, params=params, **kwargs) requests/api.py:61: in request return session.request(method=method, url=url, **kwargs) requests/sessions.py:530: in request resp = self.send(prep, **send_kwargs) requests/sessions.py:643: in send r = adapter.send(request, **kwargs) requests/adapters.py:449: in send timeout=timeout /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:588: in urlopen conn = self._get_conn(timeout=pool_timeout) /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:248: in _get_conn return conn or self._new_conn() /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:832: in _new_conn strict=self.strict, **self.conn_kw) /usr/lib/python3.6/site-packages/urllib3/connection.py:233: in __init__ timeout=timeout, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , args = ('httpbin.org', 443), kw = {'_socks_options': {'password': '', 'proxy_host': 'localhost', 'proxy_port': 53213, 'rdns': False, ...}, 'timeout': } def __init__(self, *args, **kw): if six.PY3: # Python 3 kw.pop('strict', None) # Pre-set source_address. self.source_address = kw.get('source_address') #: The socket options provided by the user. If no options are #: provided, we use the default options. self.socket_options = kw.pop('socket_options', self.default_socket_options) > _HTTPConnection.__init__(self, *args, **kw) E TypeError: __init__() got an unexpected keyword argument '_socks_options' /usr/lib/python3.6/site-packages/urllib3/connection.py:114: TypeError __________________________________________________________________________________________________________ test_use_proxy_from_environment[HTTPS_PROXY-https] __________________________________________________________________________________________________________ httpbin = .inner at 0xf707d420>, var = 'HTTPS_PROXY', scheme = 'https' @pytest.mark.parametrize("var,scheme", _proxy_combos) def test_use_proxy_from_environment(httpbin, var, scheme): url = "{}://httpbin.org".format(scheme) fake_proxy = Server() # do nothing with the requests; just close the socket with fake_proxy as (host, port): proxy_url = "socks5://{}:{}".format(host, port) kwargs = {var: proxy_url} with override_environ(**kwargs): # fake proxy's lack of response will cause a ConnectionError with pytest.raises(requests.exceptions.ConnectionError): > requests.get(url) tests/test_lowlevel.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests/api.py:76: in get return request('get', url, params=params, **kwargs) requests/api.py:61: in request return session.request(method=method, url=url, **kwargs) requests/sessions.py:530: in request resp = self.send(prep, **send_kwargs) requests/sessions.py:643: in send r = adapter.send(request, **kwargs) requests/adapters.py:449: in send timeout=timeout /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:588: in urlopen conn = self._get_conn(timeout=pool_timeout) /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:248: in _get_conn return conn or self._new_conn() /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:832: in _new_conn strict=self.strict, **self.conn_kw) /usr/lib/python3.6/site-packages/urllib3/connection.py:233: in __init__ timeout=timeout, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , args = ('httpbin.org', 443), kw = {'_socks_options': {'password': '', 'proxy_host': 'localhost', 'proxy_port': 55391, 'rdns': False, ...}, 'timeout': } def __init__(self, *args, **kw): if six.PY3: # Python 3 kw.pop('strict', None) # Pre-set source_address. self.source_address = kw.get('source_address') #: The socket options provided by the user. If no options are #: provided, we use the default options. self.socket_options = kw.pop('socket_options', self.default_socket_options) > _HTTPConnection.__init__(self, *args, **kw) E TypeError: __init__() got an unexpected keyword argument '_socks_options' /usr/lib/python3.6/site-packages/urllib3/connection.py:114: TypeError ___________________________________________________________________________________________________________ test_use_proxy_from_environment[ALL_PROXY-https] ___________________________________________________________________________________________________________ httpbin = .inner at 0xf707d078>, var = 'ALL_PROXY', scheme = 'https' @pytest.mark.parametrize("var,scheme", _proxy_combos) def test_use_proxy_from_environment(httpbin, var, scheme): url = "{}://httpbin.org".format(scheme) fake_proxy = Server() # do nothing with the requests; just close the socket with fake_proxy as (host, port): proxy_url = "socks5://{}:{}".format(host, port) kwargs = {var: proxy_url} with override_environ(**kwargs): # fake proxy's lack of response will cause a ConnectionError with pytest.raises(requests.exceptions.ConnectionError): > requests.get(url) tests/test_lowlevel.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests/api.py:76: in get return request('get', url, params=params, **kwargs) requests/api.py:61: in request return session.request(method=method, url=url, **kwargs) requests/sessions.py:530: in request resp = self.send(prep, **send_kwargs) requests/sessions.py:643: in send r = adapter.send(request, **kwargs) requests/adapters.py:449: in send timeout=timeout /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:588: in urlopen conn = self._get_conn(timeout=pool_timeout) /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:248: in _get_conn return conn or self._new_conn() /usr/lib/python3.6/site-packages/urllib3/connectionpool.py:832: in _new_conn strict=self.strict, **self.conn_kw) /usr/lib/python3.6/site-packages/urllib3/connection.py:233: in __init__ timeout=timeout, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , args = ('httpbin.org', 443), kw = {'_socks_options': {'password': '', 'proxy_host': 'localhost', 'proxy_port': 54293, 'rdns': False, ...}, 'timeout': } def __init__(self, *args, **kw): if six.PY3: # Python 3 kw.pop('strict', None) # Pre-set source_address. self.source_address = kw.get('source_address') #: The socket options provided by the user. If no options are #: provided, we use the default options. self.socket_options = kw.pop('socket_options', self.default_socket_options) > _HTTPConnection.__init__(self, *args, **kw) E TypeError: __init__() got an unexpected keyword argument '_socks_options' /usr/lib/python3.6/site-packages/urllib3/connection.py:114: TypeError ==================================================================================================== 4 failed, 522 passed, 12 skipped, 1 xfailed in 106.79 seconds ===================================================================================================== 127.0.0.1 - - [07/Apr/2020 21:25:55] "GET /stream/4 HTTP/1.1" 200 496 127.0.0.1 - - [07/Apr/2020 21:25:55] "GET /stream/4 HTTP/1.1" 200 496 127.0.0.1 - - [07/Apr/2020 21:25:55] "GET /stream/4 HTTP/1.1" 500 59 ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 36214) Traceback (most recent call last): File "/usr/lib/python3.6/wsgiref/handlers.py", line 138, in run self.finish_response() File "/usr/lib/python3.6/wsgiref/handlers.py", line 180, in finish_response self.write(data) File "/usr/lib/python3.6/wsgiref/handlers.py", line 279, in write self._write(data) File "/usr/lib/python3.6/wsgiref/handlers.py", line 453, in _write result = self.stdout.write(data) File "/usr/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) BrokenPipeError: [Errno 32] Broken pipe During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/wsgiref/handlers.py", line 141, in run self.handle_error() File "/usr/lib/python3.6/wsgiref/handlers.py", line 368, in handle_error self.finish_response() File "/usr/lib/python3.6/wsgiref/handlers.py", line 180, in finish_response self.write(data) File "/usr/lib/python3.6/wsgiref/handlers.py", line 274, in write self.send_headers() File "/usr/lib/python3.6/wsgiref/handlers.py", line 331, in send_headers if not self.origin_server or self.client_is_modern(): File "/usr/lib/python3.6/wsgiref/handlers.py", line 344, in client_is_modern return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9' TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/socketserver.py", line 320, in _handle_request_noblock self.process_request(request, client_address) File "/usr/lib/python3.6/socketserver.py", line 351, in process_request self.finish_request(request, client_address) File "/usr/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/lib/python3.6/site-packages/pytest_httpbin/serve.py", line 43, in handle handler.run(self.server.get_app()) File "/usr/lib/python3.6/wsgiref/handlers.py", line 144, in run self.close() File "/usr/lib/python3.6/site-packages/pytest_httpbin/serve.py", line 24, in close self.status.split(' ', 1)[0], self.bytes_sent AttributeError: 'NoneType' object has no attribute 'split' ---------------------------------------- * ERROR: dev-python/requests-2.23.0::gentoo failed (test phase): * Tests failed with python3.6 * * Call stack: * ebuild.sh, line 125: Called src_test * environment, line 2909: Called distutils-r1_src_test * environment, line 1252: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 452: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 2521: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2034: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2032: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 840: Called distutils-r1_run_phase 'python_test' * environment, line 1189: Called python_test * environment, line 2866: Called die * The specific snippet of code: * pytest -vv || die "Tests failed with ${EPYTHON}" * * If you need support, post the output of `emerge --info '=dev-python/requests-2.23.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/requests-2.23.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-python/requests-2.23.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/requests-2.23.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0' * S: '/var/tmp/portage/dev-python/requests-2.23.0/work/requests-2.23.0'