repo_id string | cross_repo_split string | commit_index int32 | commit_sha string | in_repo_split string | test_file string | file_split string | split_group string | lineno int32 | col_offset int32 | assertion_type string | test_function string | prefix large_string | target string | assertion_event_type string | assertion_event_id string | assertion_anchor large_string | old_target string | old_lineno int32 | old_col_offset int32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
urllib3/urllib3 | train | 437 | 7d55357d1ed68984043ac8239c7b573ae370844c | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 234 | 12 | assert | test_unknown_scheme | import json
from test import LONG_TIMEOUT
import pytest
from dummyserver.server import HAS_IPV6
from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase
from urllib3 import request
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError, URLSchemeUnk... | unknown_scheme_url | modified | cba882e99ffb761792a7ee957068ae6c96f6327262d3362840376002a13d5f69 | assert|test_unknown_scheme|import json from test import LONG_TIMEOUT import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import request from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import Ma... | unknown_scheme_url | 233 | 12 |
urllib3/urllib3 | train | 438 | 67111020d9cfc5798bc85f3719b3015e3ff28692 | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 637 | 8 | assert | test_length_after_read | import contextlib
import http.client as httplib
import socket
import ssl
import zlib
from base64 import b64decode
from io import BufferedReader, BytesIO, TextIOWrapper
from test import onlyBrotli
from unittest import mock
import pytest
from urllib3.exceptions import (
DecodeError,
IncompleteRead,
InvalidC... | None | modified | 9951c5ebf5b546817acb9ec6d25acf16589b733f4ef70fe85360666926481df2 | assert|test_length_after_read|import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli from unittest import mock import pytest from urllib3.exceptions import ( DecodeError, Incomple... | None | 637 | 8 |
urllib3/urllib3 | train | 438 | 67111020d9cfc5798bc85f3719b3015e3ff28692 | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 690 | 12 | assert | test_mock_transfer_encoding_chunked | import contextlib
import http.client as httplib
import socket
import ssl
import zlib
from base64 import b64decode
from io import BufferedReader, BytesIO, TextIOWrapper
from test import onlyBrotli
from unittest import mock
import pytest
from urllib3.exceptions import (
DecodeError,
IncompleteRead,
InvalidC... | stream[i] | modified | 1a0196557bcdca9e5b37b8628f507eeb90a455cb64f8d560de2a64e1653b234b | assert|test_mock_transfer_encoding_chunked|import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli from unittest import mock import pytest from urllib3.exceptions import ( DecodeEr... | stream[i] | 690 | 12 |
urllib3/urllib3 | train | 438 | 67111020d9cfc5798bc85f3719b3015e3ff28692 | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 759 | 13 | pytest.raises | test_buggy_incomplete_read | import contextlib
import http.client as httplib
import socket
import ssl
import zlib
from base64 import b64decode
from io import BufferedReader, BytesIO, TextIOWrapper
from test import onlyBrotli
from unittest import mock
import pytest
from urllib3.exceptions import (
DecodeError,
IncompleteRead,
InvalidC... | ProtocolError) | modified | 0e9757853c22c34790f94d3f34ace88d977bd6a5d7693ffa181372d0000e4db1 | pytest.raises|test_buggy_incomplete_read|import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli from unittest import mock import pytest from urllib3.exceptions import ( DecodeErro... | ProtocolError) | 759 | 13 |
urllib3/urllib3 | train | 438 | 67111020d9cfc5798bc85f3719b3015e3ff28692 | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 900 | 8 | assert | test__iter__ | import contextlib
import http.client as httplib
import socket
import ssl
import zlib
from base64 import b64decode
from io import BufferedReader, BytesIO, TextIOWrapper
from test import onlyBrotli
from unittest import mock
import pytest
from urllib3.exceptions import (
DecodeError,
IncompleteRead,
InvalidC... | expected_stream | modified | 1be94b7ec9187d091e4404bfaaac0a7d9f00f855d1ce0309f16c9de3efea6242 | assert|test__iter__|import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli from unittest import mock import pytest from urllib3.exceptions import ( DecodeError, IncompleteRead, In... | expected_stream | 900 | 8 |
urllib3/urllib3 | train | 438 | 67111020d9cfc5798bc85f3719b3015e3ff28692 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 300 | 8 | assert | test_unparse_url | import io
import logging
import socket
import ssl
import warnings
from itertools import chain
from test import notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (
InsecureRequestWarning,
Locati... | expected_url.url | modified | e0eb773bf5759ec82934c098be53a5ecc4a6b79f1f28290b491d990d7ce62dd5 | assert|test_unparse_url|import io import logging import socket import ssl import warnings from itertools import chain from test import notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.exceptions import ( InsecureRequestW... | expected_url.url | 300 | 8 |
urllib3/urllib3 | train | 438 | 67111020d9cfc5798bc85f3719b3015e3ff28692 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 656 | 8 | assert | test_is_fp_closed_object_has_fp | import io
import logging
import socket
import ssl
import warnings
from itertools import chain
from test import notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (
InsecureRequestWarning,
Locati... | not is_fp_closed(FpFile()) | modified | cdc7810aaf44b6a68c0adcedaab6b4dc81f54c36ec8f230de7262d5cb4af37ef | assert|test_is_fp_closed_object_has_fp|import io import logging import socket import ssl import warnings from itertools import chain from test import notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.exceptions import ( I... | not is_fp_closed(FpFile()) | 656 | 8 |
urllib3/urllib3 | train | 438 | 67111020d9cfc5798bc85f3719b3015e3ff28692 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 662 | 13 | pytest.raises | test_is_fp_closed_object_has_neither_fp_nor_closed | import io
import logging
import socket
import ssl
import warnings
from itertools import chain
from test import notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (
InsecureRequestWarning,
Locati... | ValueError) | modified | 415a4ba8d4cfc7e3d7671fc5366efcc80640901d90a7d14442c6c81b3e4a0a24 | pytest.raises|test_is_fp_closed_object_has_neither_fp_nor_closed|import io import logging import socket import ssl import warnings from itertools import chain from test import notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from url... | ValueError) | 662 | 13 |
urllib3/urllib3 | train | 438 | 67111020d9cfc5798bc85f3719b3015e3ff28692 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 866 | 8 | assert_* | test_ssl_wrap_socket_loads_certificate_data | import io
import logging
import socket
import ssl
import warnings
from itertools import chain
from test import notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (
InsecureRequestWarning,
Locati... | "TOTALLY PEM DATA") | modified | c0127c08fb2010dbcc0f3ae5aedfd5e8ac59c7a903c4f216b70b9aef84c0cb2d | assert_*|test_ssl_wrap_socket_loads_certificate_data|import io import logging import socket import ssl import warnings from itertools import chain from test import notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.excepti... | "TOTALLY PEM DATA") | 866 | 8 |
urllib3/urllib3 | train | 439 | fd3844654c73567fa20565483c9a4641e5040195 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 493 | 13 | pytest.raises | test_rewind_body_failed_tell | import io
import logging
import socket
import ssl
import warnings
from itertools import chain
from test import notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (
InsecureRequestWarning,
Locati... | UnrewindableBodyError) | modified | 9fdb94bbd69945918fe480e630a64edf8cdca4b3b3a380895e59099318ec1dae | pytest.raises|test_rewind_body_failed_tell|import io import logging import socket import ssl import warnings from itertools import chain from test import notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.exceptions import... | UnrewindableBodyError) | 494 | 13 |
urllib3/urllib3 | train | 439 | fd3844654c73567fa20565483c9a4641e5040195 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 501 | 13 | pytest.raises | test_rewind_body_bad_position | import io
import logging
import socket
import ssl
import warnings
from itertools import chain
from test import notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (
InsecureRequestWarning,
Locati... | ValueError) | modified | 3f644729d764ad628969663f1e9ef536a8871ed447e0d0760c022e3079a0fe24 | pytest.raises|test_rewind_body_bad_position|import io import logging import socket import ssl import warnings from itertools import chain from test import notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.exceptions impor... | ValueError) | 502 | 13 |
urllib3/urllib3 | train | 439 | fd3844654c73567fa20565483c9a4641e5040195 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 759 | 13 | pytest.raises | test_to_str_error | import io
import logging
import socket
import ssl
import warnings
from itertools import chain
from test import notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (
InsecureRequestWarning,
Locati... | TypeError, match="not expecting type int") | added | 9713354117bdb5d15b52a1f20df725790d11981ef181602718bdc91dfa8fecc7 | pytest.raises|test_to_str_error|import io import logging import socket import ssl import warnings from itertools import chain from test import notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.exceptions import ( Insecure... | null | null | null |
urllib3/urllib3 | train | 439 | fd3844654c73567fa20565483c9a4641e5040195 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 876 | 12 | assert | test_ssl_wrap_socket_sni_hostname_use_or_warn | import io
import logging
import socket
import ssl
import warnings
from itertools import chain
from test import notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (
InsecureRequestWarning,
Locati... | warnings | added | 324d365e05db2a2e05174f0d6757ae602e3c0ead9b8745b919d58eaad293add8 | assert|test_ssl_wrap_socket_sni_hostname_use_or_warn|import io import logging import socket import ssl import warnings from itertools import chain from test import notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.excepti... | null | null | null |
urllib3/urllib3 | train | 440 | 22057712b66eddf48ad3bdf458c1586733508111 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 179 | 17 | pytest.raises | test_proxy_verified | import json
import os.path
import shutil
import socket
import tempfile
from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL
import pytest
import trustme
from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv... | MaxRetryError) | added | cad223ae53f414eb5db0c97514b96bb3684300a2d551cd109472b65159e9fab0 | pytest.raises|test_proxy_verified|import json import os.path import shutil import socket import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase im... | null | null | null |
urllib3/urllib3 | train | 440 | 22057712b66eddf48ad3bdf458c1586733508111 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 260 | 12 | assert | test_cross_protocol_redirect | import json
import os.path
import shutil
import socket
import tempfile
from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL
import pytest
import trustme
from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv... | self.https_host | added | 6fb5ebfd93a0b30589206d8bf3f5701c8889a6a80fcc22572378d528a3cfc5e8 | assert|test_cross_protocol_redirect|import json import os.path import shutil import socket import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase ... | null | null | null |
urllib3/urllib3 | train | 440 | 22057712b66eddf48ad3bdf458c1586733508111 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 366 | 12 | assert | test_https_headers | import json
import os.path
import shutil
import socket
import tempfile
from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL
import pytest
import trustme
from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv... | None | added | d3a5c7eb24f595f7a4810d5f09fd36f4d89d0a24f1aa46bf9574f4ba3228d6ea | assert|test_https_headers|import json import os.path import shutil import socket import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase import HTT... | null | null | null |
urllib3/urllib3 | train | 440 | 22057712b66eddf48ad3bdf458c1586733508111 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 384 | 12 | assert | test_https_headers_forwarding_for_https | import json
import os.path
import shutil
import socket
import tempfile
from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL
import pytest
import trustme
from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv... | f"{self.https_host}:{self.https_port}" | added | adf0295ad8a5fc2630c06ecec1573546627c0db256362d6bbcd45249dc4cfffe | assert|test_https_headers_forwarding_for_https|import json import os.path import shutil import socket import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserve... | null | null | null |
urllib3/urllib3 | train | 441 | 13e82da1d6e000dc48af0098e1d4486fc9b66ab3 | train | test/test_filepost.py | val | urllib3/urllib3:test/test_filepost.py | 42 | 8 | assert | test_field_encoding | import pytest
from urllib3.fields import RequestField
from urllib3.filepost import encode_multipart_formdata
BOUNDARY = "!! test boundary !!"
BOUNDARY_BYTES = BOUNDARY.encode()
class TestMultipartEncoding:
@pytest.mark.parametrize(
"fields", [dict(k="v", k2="v2"), [("k", "v"), ("k2", "v2")]]
)
d... | "multipart/form-data; boundary=" + str(BOUNDARY) | added | a27aa683971110277c02c7730635f49a4b127b60652515f45d0df48a90b5d785 | assert|test_field_encoding|import pytest from urllib3.fields import RequestField from urllib3.filepost import encode_multipart_formdata BOUNDARY = "!! test boundary !!" BOUNDARY_BYTES = BOUNDARY.encode() class TestMultipartEncoding: @pytest.mark.parametrize( "fields", [dict(k="v", k2="v2"), [("k", "v"), ("k2", "v2")]] ... | null | null | null |
urllib3/urllib3 | train | 441 | 13e82da1d6e000dc48af0098e1d4486fc9b66ab3 | train | test/test_filepost.py | val | urllib3/urllib3:test/test_filepost.py | 59 | 8 | assert | test_filename | import pytest
from urllib3.fields import RequestField
from urllib3.filepost import encode_multipart_formdata
BOUNDARY = "!! test boundary !!"
BOUNDARY_BYTES = BOUNDARY.encode()
class TestMultipartEncoding:
@pytest.mark.parametrize(
"fields", [dict(k="v", k2="v2"), [("k", "v"), ("k2", "v2")]]
)
d... | "multipart/form-data; boundary=" + str(BOUNDARY) | added | 73f51e7f431aa140c5055a4a413cd4117f8e64a6ea4f908f7f0f070895749f90 | assert|test_filename|import pytest from urllib3.fields import RequestField from urllib3.filepost import encode_multipart_formdata BOUNDARY = "!! test boundary !!" BOUNDARY_BYTES = BOUNDARY.encode() class TestMultipartEncoding: @pytest.mark.parametrize( "fields", [dict(k="v", k2="v2"), [("k", "v"), ("k2", "v2")]] ) def ... | null | null | null |
urllib3/urllib3 | train | 441 | 13e82da1d6e000dc48af0098e1d4486fc9b66ab3 | train | test/test_filepost.py | val | urllib3/urllib3:test/test_filepost.py | 74 | 8 | assert | test_textplain | import pytest
from urllib3.fields import RequestField
from urllib3.filepost import encode_multipart_formdata
BOUNDARY = "!! test boundary !!"
BOUNDARY_BYTES = BOUNDARY.encode()
class TestMultipartEncoding:
@pytest.mark.parametrize(
"fields", [dict(k="v", k2="v2"), [("k", "v"), ("k2", "v2")]]
)
d... | expected | added | e3368527c41ed36d5e2e83c0defbb28fb5adc191a99aa59827e2bcb2de8e43ec | assert|test_textplain|import pytest from urllib3.fields import RequestField from urllib3.filepost import encode_multipart_formdata BOUNDARY = "!! test boundary !!" BOUNDARY_BYTES = BOUNDARY.encode() class TestMultipartEncoding: @pytest.mark.parametrize( "fields", [dict(k="v", k2="v2"), [("k", "v"), ("k2", "v2")]] ) def... | null | null | null |
urllib3/urllib3 | train | 441 | 13e82da1d6e000dc48af0098e1d4486fc9b66ab3 | train | test/test_filepost.py | val | urllib3/urllib3:test/test_filepost.py | 114 | 8 | assert | test_request_fields | import pytest
from urllib3.fields import RequestField
from urllib3.filepost import encode_multipart_formdata
BOUNDARY = "!! test boundary !!"
BOUNDARY_BYTES = BOUNDARY.encode()
class TestMultipartEncoding:
@pytest.mark.parametrize(
"fields", [dict(k="v", k2="v2"), [("k", "v"), ("k2", "v2")]]
)
d... | expected | added | b3fdfd43cccc1f28a55230802d12844b8cea600e04c587f4807feb646b9875c9 | assert|test_request_fields|import pytest from urllib3.fields import RequestField from urllib3.filepost import encode_multipart_formdata BOUNDARY = "!! test boundary !!" BOUNDARY_BYTES = BOUNDARY.encode() class TestMultipartEncoding: @pytest.mark.parametrize( "fields", [dict(k="v", k2="v2"), [("k", "v"), ("k2", "v2")]] ... | null | null | null |
urllib3/urllib3 | train | 442 | 6d799ce26a6a565c1921a930e1dbd41de1f45f62 | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 85 | 4 | assert | import os
import shutil
import subprocess
import nox
# Whenever type-hints are completed on a file it should be added here so that
# this file will continue to be checked by mypy. Errors from other files are
# ignored.
TYPED_FILES = {
"src/urllib3/contrib/__init__.py",
"src/urllib3/exceptions.py",
"src/ur... | process.stderr | modified | b8ab6755a3918114696a9a091b67dabceb1297be3a0ab9606c1de3cf522bd407 | assert||import os import shutil import subprocess import nox # Whenever type-hints are completed on a file it should be added here so that # this file will continue to be checked by mypy. Errors from other files are # ignored. TYPED_FILES = { "src/urllib3/contrib/__init__.py", "src/urllib3/exceptions.py", "src/urllib3/... | process.stderr | 83 | 4 | |
urllib3/urllib3 | train | 442 | 6d799ce26a6a565c1921a930e1dbd41de1f45f62 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 38 | 8 | assert | test_expire | import pytest
from urllib3._collections import HTTPHeaderDict
from urllib3._collections import RecentlyUsedContainer as Container
class TestLRUContainer:
def test_maxsize(self):
d = Container(5)
for i in range(5):
d[i] = str(i)
assert len(d) == 5
for i in range(5):
... | [2, 3, 4, 0, 5] | modified | a5985930040af045aebfa69b263e85fab13646e6c9d21a2870ff9481aa98b9a5 | assert|test_expire|import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer: def test_maxsize(self): d = Container(5) for i in range(5): d[i] = str(i) assert len(d) == 5 for i in range(5): assert d[i] == str(i) d[i + 1] = st... | [2, 3, 4, 0, 5] | 38 | 8 |
urllib3/urllib3 | train | 442 | 6d799ce26a6a565c1921a930e1dbd41de1f45f62 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 110 | 8 | assert | test_disposal | import pytest
from urllib3._collections import HTTPHeaderDict
from urllib3._collections import RecentlyUsedContainer as Container
class TestLRUContainer:
def test_maxsize(self):
d = Container(5)
for i in range(5):
d[i] = str(i)
assert len(d) == 5
for i in range(5):
... | list(range(1, 6)) | modified | 8f6d6fdcbb8c1339be13d52ccbc5a1a055c6520eabbda6269abfe483a9e6a76a | assert|test_disposal|import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer: def test_maxsize(self): d = Container(5) for i in range(5): d[i] = str(i) assert len(d) == 5 for i in range(5): assert d[i] == str(i) d[i + 1] = ... | list(range(1, 6)) | 110 | 8 |
urllib3/urllib3 | train | 442 | 6d799ce26a6a565c1921a930e1dbd41de1f45f62 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 223 | 8 | assert | test_add_comma_separated_multiheader | import pytest
from urllib3._collections import HTTPHeaderDict
from urllib3._collections import RecentlyUsedContainer as Container
class TestLRUContainer:
def test_maxsize(self):
d = Container(5)
for i in range(5):
d[i] = str(i)
assert len(d) == 5
for i in range(5):
... | "foo, bar, asdf" | modified | 3ab0f8dacc3a2a8e37a53409daf0c6a7249bb28998baf86ca580b6c05d785857 | assert|test_add_comma_separated_multiheader|import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer: def test_maxsize(self): d = Container(5) for i in range(5): d[i] = str(i) assert len(d) == 5 for i in range(5): assert d[i... | "foo, bar, asdf" | 223 | 8 |
urllib3/urllib3 | train | 442 | 6d799ce26a6a565c1921a930e1dbd41de1f45f62 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 340 | 8 | assert | test_dict_conversion | import pytest
from urllib3._collections import HTTPHeaderDict
from urllib3._collections import RecentlyUsedContainer as Container
class TestLRUContainer:
def test_maxsize(self):
d = Container(5)
for i in range(5):
d[i] = str(i)
assert len(d) == 5
for i in range(5):
... | dict(HTTPHeaderDict(hdict)) | added | 62d0a2b1cf49a1a61e6020921325b38052985c77a9cfd112f2d3ad8117082209 | assert|test_dict_conversion|import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer: def test_maxsize(self): d = Container(5) for i in range(5): d[i] = str(i) assert len(d) == 5 for i in range(5): assert d[i] == str(i) d[i ... | null | null | null |
urllib3/urllib3 | train | 443 | 11fecfd738827ee1c520e1078c56919e9f94e3f8 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 94 | 12 | assert | test_sni_missing_warning_with_ip_addresses | from unittest import mock
import pytest
from urllib3.exceptions import SNIMissingWarning
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# IPv4
... | warnings | modified | 5a8cf3ce2dcb61367c092afc308f4128c62e33bad0038ee9fe368c3fac77db23 | assert|test_sni_missing_warning_with_ip_addresses|from unittest import mock import pytest from urllib3.exceptions import SNIMissingWarning from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # ... | 1 | 96 | 12 |
urllib3/urllib3 | train | 443 | 11fecfd738827ee1c520e1078c56919e9f94e3f8 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 120 | 12 | assert | test_create_urllib3_context_set_ciphers | from unittest import mock
import pytest
from urllib3.exceptions import SNIMissingWarning
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# IPv4
... | mock.call(expected_ciphers) | modified | 4515f6eb4823a39ab96556fda3e3cca79f0691b560ce6818a95c354fc12db57d | assert|test_create_urllib3_context_set_ciphers|from unittest import mock import pytest from urllib3.exceptions import SNIMissingWarning from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # IPv... | 1 | 123 | 12 |
urllib3/urllib3 | train | 443 | 11fecfd738827ee1c520e1078c56919e9f94e3f8 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 168 | 8 | assert | test_create_urllib3_context_pha | from unittest import mock
import pytest
from urllib3.exceptions import SNIMissingWarning
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# IPv4
... | expected_pha | modified | 1860d52342460ebd1868de9e9756c46afbfbf4ff1ffd420289463677b8e5d50e | assert|test_create_urllib3_context_pha|from unittest import mock import pytest from urllib3.exceptions import SNIMissingWarning from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # IPv6 w/ Zon... | context | 170 | 8 |
urllib3/urllib3 | train | 443 | 11fecfd738827ee1c520e1078c56919e9f94e3f8 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 187 | 12 | assert_* | test_create_urllib3_context_default_ciphers | from unittest import mock
import pytest
from urllib3.exceptions import SNIMissingWarning
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# IPv4
... | ssl_.DEFAULT_CIPHERS) | added | 9a73cd363fcec5fcde40b0c06df2ca353272d3358ca35f64493844c6d9eb83af | assert_*|test_create_urllib3_context_default_ciphers|from unittest import mock import pytest from urllib3.exceptions import SNIMissingWarning from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1",... | null | null | null |
urllib3/urllib3 | train | 444 | 887c6bb86682912e8fb6a296628b4ca4a6657cd2 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 168 | 17 | pytest.raises | test_client_no_intermediate | import datetime
import json
import logging
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password,
resolvesLocalhostFQDN,
)
fro... | (SSLError, ProtocolError)) | modified | c7148680d3771674cc909b3c707c11abab5e16b4769cd6dbd2b8017c1eccbad3 | pytest.raises|test_client_no_intermediate|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalh... | (SSLError, ProtocolError)) | 169 | 17 |
urllib3/urllib3 | train | 444 | 887c6bb86682912e8fb6a296628b4ca4a6657cd2 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 281 | 12 | assert | test_verified_with_bad_ca_certs | import datetime
import json
import logging
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password,
resolvesLocalhostFQDN,
)
fro... | isinstance(e.value.reason, SSLError) | modified | 29029fe0f60bf3d4f749e697e38ba6d8728002e401913eeee9b7460194195fa6 | assert|test_verified_with_bad_ca_certs|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalhost... | isinstance(e.value.reason, SSLError) | 283 | 12 |
urllib3/urllib3 | train | 444 | 887c6bb86682912e8fb6a296628b4ca4a6657cd2 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 350 | 16 | assert | test_ssl_unverified_with_ca_certs | import datetime
import json
import logging
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password,
resolvesLocalhostFQDN,
)
fro... | InsecureRequestWarning | modified | 5dc913204585dc77f5b2e3054cde8edc40b62aaec88fc9af14a65c624058bbc6 | assert|test_ssl_unverified_with_ca_certs|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho... | InsecureRequestWarning | 352 | 16 |
urllib3/urllib3 | train | 444 | 887c6bb86682912e8fb6a296628b4ca4a6657cd2 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 415 | 17 | pytest.raises | _test_request | import datetime
import json
import logging
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password,
resolvesLocalhostFQDN,
)
fro... | MaxRetryError) | modified | 963eb225f693ee96d643300ce6488971240102d9941abbc0bf749a5b6cc2c8a2 | pytest.raises|_test_request|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalhostFQDN, ) fro... | MaxRetryError) | 417 | 17 |
urllib3/urllib3 | train | 445 | 1bf2f1640f9adbb0a73d8120f7e478b2ce2298f7 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 790 | 17 | pytest.raises | test_common_name_without_san_fails | import datetime
import json
import logging
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password,
resolvesLocalhostFQDN,
)
fro... | MaxRetryError, match="no appropriate subjectAltName") | added | cb3a07638fdafc517aa005d2cdd4ee3eaca029421dafb71194b5f2aadf5296bf | pytest.raises|test_common_name_without_san_fails|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolve... | null | null | null |
urllib3/urllib3 | train | 446 | 7f56f2e7ccdc22faca81f4b41ff7a889e48f3203 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 90 | 8 | assert | test_create_urllib3_context_set_ciphers | from unittest import mock
import pytest
from urllib3.exceptions import SNIMissingWarning
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# IPv4
... | context | added | 56df0d824bede56712f9bc68fd88c54ed948aca53e5edfe31604cd8104328009 | assert|test_create_urllib3_context_set_ciphers|from unittest import mock import pytest from urllib3.exceptions import SNIMissingWarning from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # IPv... | null | null | null |
urllib3/urllib3 | train | 446 | 7f56f2e7ccdc22faca81f4b41ff7a889e48f3203 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 163 | 12 | assert_* | test_create_urllib3_context_default_ciphers | from unittest import mock
import pytest
from urllib3.exceptions import SNIMissingWarning
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# IPv4
... | ssl_.DEFAULT_CIPHERS) | added | 713dc51baac97787c562289fce8f5f443817b163ec4a7200df5ad75ab90f76b7 | assert_*|test_create_urllib3_context_default_ciphers|from unittest import mock import pytest from urllib3.exceptions import SNIMissingWarning from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1",... | null | null | null |
urllib3/urllib3 | train | 446 | 7f56f2e7ccdc22faca81f4b41ff7a889e48f3203 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 270 | 12 | assert | test_invalid_common_name | import datetime
import json
import logging
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password,
resolvesLocalhostFQDN,
)
fro... | isinstance(e.value.reason, SSLError) | modified | 7f9ea1d38dda6e69ca22b7b8be3e65ef8cf50b9e65600d028bd3ad1053787e8a | assert|test_invalid_common_name|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalhostFQDN, )... | isinstance(e.value.reason, SSLError) | 270 | 12 |
urllib3/urllib3 | train | 446 | 7f56f2e7ccdc22faca81f4b41ff7a889e48f3203 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 281 | 12 | assert | test_verified_with_bad_ca_certs | import datetime
import json
import logging
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password,
resolvesLocalhostFQDN,
)
fro... | isinstance(e.value.reason, SSLError) | modified | 919794aa8fb8f19ededce3b5cb3187a93d233ab5bb4de6362877824eef480fd0 | assert|test_verified_with_bad_ca_certs|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalhost... | isinstance(e.value.reason, SSLError) | 281 | 12 |
urllib3/urllib3 | train | 446 | 7f56f2e7ccdc22faca81f4b41ff7a889e48f3203 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 282 | 12 | assert | test_headers | import json
import os.path
import shutil
import socket
import tempfile
from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL
import pytest
import trustme
from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv... | f"{self.http_host_alt}:{self.http_port}" | modified | 64ebde3b80aec344479c47c3c568b7b01a207e19c3a9ff7d7b76ebb8cfeeba30 | assert|test_headers|import json import os.path import shutil import socket import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase import HTTPDummy... | f"{self.http_host_alt}:{self.http_port}" | 280 | 12 |
urllib3/urllib3 | train | 446 | 7f56f2e7ccdc22faca81f4b41ff7a889e48f3203 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 458 | 12 | assert | test_https_proxy_pool_timeout | import json
import os.path
import shutil
import socket
import tempfile
from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL
import pytest
import trustme
from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv... | ConnectTimeoutError | modified | ea09b6a3069be844ae8ea0463d9f5fc248b7d2822976aa36ab1593988579855a | assert|test_https_proxy_pool_timeout|import json import os.path import shutil import socket import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase... | ConnectTimeoutError | 456 | 12 |
urllib3/urllib3 | train | 446 | 7f56f2e7ccdc22faca81f4b41ff7a889e48f3203 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,469 | 17 | pytest.raises | test_unknown_protocol | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
import http.client as httplib
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CERTS,
encrypt_key_pem,
get_unreachable_address,
)
from dummyserver.testcase import SocketDummyServ... | ProtocolError) | modified | a45eb5db347dbb92fff96a846b42ffd7147649bd00282a536725c4271b9e4026 | pytest.raises|test_unknown_protocol|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import http.client as httplib from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase imp... | ProtocolError) | 1,466 | 17 |
urllib3/urllib3 | train | 446 | 7f56f2e7ccdc22faca81f4b41ff7a889e48f3203 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,538 | 12 | assert | test_ua_header_can_be_overridden | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
import http.client as httplib
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CERTS,
encrypt_key_pem,
get_unreachable_address,
)
from dummyserver.testcase import SocketDummyServ... | self.parsed_headers | modified | 016ddb81326145a1432327d6a5229c8aeb32733afa9b55baa1ef3035a058b003 | assert|test_ua_header_can_be_overridden|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import http.client as httplib from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase... | self.parsed_headers | 1,535 | 12 |
urllib3/urllib3 | train | 447 | 44ee4ad281444ec0b0a0aeeb2c8bf423c15cbc20 | train | test/test_no_ssl.py | train | urllib3/urllib3:test/test_no_ssl.py | 33 | 13 | pytest.raises | test_cannot_import_ssl | """
Test what happens if Python was built without SSL
* Everything that does not involve HTTPS should still work
* HTTPS requests must fail with an error that points at the ssl module
"""
import sys
from test import ImportBlocker, ModuleStash
import pytest
ssl_blocker = ImportBlocker("ssl", "_ssl")
module_stash = M... | ImportError) | added | e4dee20d99bb6a45f28328c5c1b30c919328bff5799e36e9b45e4e6f9c4672f8 | pytest.raises|test_cannot_import_ssl|""" Test what happens if Python was built without SSL * Everything that does not involve HTTPS should still work * HTTPS requests must fail with an error that points at the ssl module """ import sys from test import ImportBlocker, ModuleStash import pytest ssl_blocker = ImportBlocke... | null | null | null |
urllib3/urllib3 | train | 447 | 44ee4ad281444ec0b0a0aeeb2c8bf423c15cbc20 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 294 | 8 | assert | test_parse_url | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | expected_url | modified | 0d9bcf9b5c72843a906809e21f3b4e16555f7c8eece2cbd19acdc75620dc538d | assert|test_parse_url|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3... | expected_url | 293 | 8 |
urllib3/urllib3 | train | 447 | 44ee4ad281444ec0b0a0aeeb2c8bf423c15cbc20 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 475 | 8 | assert | test_make_headers | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | expected | modified | 3da243cb21a6ad46239357b265e4c0f7e5b205b61479aecc7675f322b60d8b51 | assert|test_make_headers|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urll... | expected | 474 | 8 |
urllib3/urllib3 | train | 447 | 44ee4ad281444ec0b0a0aeeb2c8bf423c15cbc20 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 682 | 8 | assert | test_connection_requires_http_tunnel_no_proxy | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | not connection_requires_http_tunnel( proxy_url=None, proxy_config=None, destination_scheme=None ) | modified | a13738d9101a7a85f912926b211ce0f837ac47b2225b789dfcdd094e14a07b9c | assert|test_connection_requires_http_tunnel_no_proxy|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disa... | not connection_requires_http_tunnel( proxy_url=None, proxy_config=None, destination_scheme=None ) | 681 | 8 |
urllib3/urllib3 | train | 447 | 44ee4ad281444ec0b0a0aeeb2c8bf423c15cbc20 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 795 | 8 | assert | test_resolve_cert_reqs | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | requirements | modified | 5083d832f5ae46a4d734a504feba20bc870cba3b48b5488b4c323f92f666857b | assert|test_resolve_cert_reqs|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from... | requirements | 794 | 8 |
urllib3/urllib3 | train | 448 | 287052a16a59bcaba5772387de36fa9a49eb8378 | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 87 | 4 | assert | import os
import shutil
import subprocess
import nox
# Whenever type-hints are completed on a file it should be added here so that
# this file will continue to be checked by mypy. Errors from other files are
# ignored.
TYPED_FILES = {
"src/urllib3/contrib/__init__.py",
"src/urllib3/connection.py",
"src/ur... | process.stderr | modified | b8457f833c1b0d4d8ab787f45daf3b4ca00fa31f570a29539c01fc12b7719daa | assert||import os import shutil import subprocess import nox # Whenever type-hints are completed on a file it should be added here so that # this file will continue to be checked by mypy. Errors from other files are # ignored. TYPED_FILES = { "src/urllib3/contrib/__init__.py", "src/urllib3/connection.py", "src/urllib3/... | process.stderr | 85 | 4 | |
urllib3/urllib3 | train | 448 | 287052a16a59bcaba5772387de36fa9a49eb8378 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 29 | 8 | assert | test_is_ipaddress_true | from unittest import mock
import pytest
from urllib3.exceptions import SNIMissingWarning, SSLError
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# I... | ssl_.is_ipaddress(addr) | modified | b51b9dcc1949a794a50998ff148563ab398365aae4e1159b83e353d0954aae86 | assert|test_is_ipaddress_true|from unittest import mock import pytest from urllib3.exceptions import SNIMissingWarning, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # IPv6 w/ Zo... | ssl_.is_ipaddress(addr) | 29 | 8 |
urllib3/urllib3 | train | 448 | 287052a16a59bcaba5772387de36fa9a49eb8378 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 70 | 12 | assert | test_sni_missing_warning_with_ip_addresses | from unittest import mock
import pytest
from urllib3.exceptions import SNIMissingWarning, SSLError
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# I... | warnings | modified | ae891abb42e97ba2110956052870f439fdad88e059b9e9c654b69157bc75364f | assert|test_sni_missing_warning_with_ip_addresses|from unittest import mock import pytest from urllib3.exceptions import SNIMissingWarning, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.... | warnings | 70 | 12 |
urllib3/urllib3 | train | 448 | 287052a16a59bcaba5772387de36fa9a49eb8378 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 96 | 12 | assert | test_create_urllib3_context_set_ciphers | from unittest import mock
import pytest
from urllib3.exceptions import SNIMissingWarning, SSLError
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# I... | mock.call(expected_ciphers) | modified | c2f2acc339f7a6143f2d776326507d5d6c85e2498732bd631c0ee846881e08c7 | assert|test_create_urllib3_context_set_ciphers|from unittest import mock import pytest from urllib3.exceptions import SNIMissingWarning, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0... | mock.call(expected_ciphers) | 96 | 12 |
urllib3/urllib3 | train | 448 | 287052a16a59bcaba5772387de36fa9a49eb8378 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 163 | 12 | assert_* | test_create_urllib3_context_default_ciphers | from unittest import mock
import pytest
from urllib3.exceptions import SNIMissingWarning, SSLError
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# I... | ssl_.DEFAULT_CIPHERS) | modified | 59344d9b1174dc67e1afc1d1f6925f19f080637109d1f144fc7743406e903447 | assert_*|test_create_urllib3_context_default_ciphers|from unittest import mock import pytest from urllib3.exceptions import SNIMissingWarning, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"1... | ssl_.DEFAULT_CIPHERS) | 163 | 12 |
urllib3/urllib3 | train | 448 | 287052a16a59bcaba5772387de36fa9a49eb8378 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 647 | 12 | assert | test_for_double_release | import io
import json
import logging
import socket
import sys
import time
import warnings
from test import LONG_TIMEOUT, SHORT_TIMEOUT
from threading import Event
from unittest import mock
from urllib.parse import urlencode
import pytest
from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning
from dummyserver.... | MAXSIZE - 1 | modified | f36f0649122c68e2432403779fedfbdfe3904e431d0848e958a43103c43bb553 | assert|test_for_double_release|import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import HAS_IPV6_AND_DNS, No... | MAXSIZE - 1 | 646 | 12 |
urllib3/urllib3 | train | 448 | 287052a16a59bcaba5772387de36fa9a49eb8378 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 710 | 21 | pytest.raises | test_source_address_error | import io
import json
import logging
import socket
import sys
import time
import warnings
from test import LONG_TIMEOUT, SHORT_TIMEOUT
from threading import Event
from unittest import mock
from urllib.parse import urlencode
import pytest
from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning
from dummyserver.... | NewConnectionError) | modified | 583a2b82aba0846d2bfb6b1c0a894a1f4a8de59293cf5894ce2096ba26c4fb45 | pytest.raises|test_source_address_error|import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import HAS_IPV6_AN... | NewConnectionError) | 709 | 21 |
urllib3/urllib3 | train | 448 | 287052a16a59bcaba5772387de36fa9a49eb8378 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 827 | 12 | assert | test_default_user_agent_header | import io
import json
import logging
import socket
import sys
import time
import warnings
from test import LONG_TIMEOUT, SHORT_TIMEOUT
from threading import Event
from unittest import mock
from urllib.parse import urlencode
import pytest
from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning
from dummyserver.... | custom_ua2 | modified | 3fba75b06fffdba48b437ccc20cd0fb6a58ddffe074cb55c6d7c9341ed43b836 | assert|test_default_user_agent_header|import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import HAS_IPV6_AND_... | custom_ua2 | 826 | 12 |
urllib3/urllib3 | train | 449 | 51f4c679e5e6f4e3121c21b768517e92a9deb87d | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 91 | 4 | assert | import os
import shutil
import subprocess
import nox
# Whenever type-hints are completed on a file it should be added here so that
# this file will continue to be checked by mypy. Errors from other files are
# ignored.
TYPED_FILES = {
"src/urllib3/contrib/__init__.py",
"src/urllib3/connection.py",
"src/ur... | process.stderr | added | 1d4374421da68c91eeaeee0afa30663c9f56c180ec9bc8139db0c0cafe482c41 | assert||import os import shutil import subprocess import nox # Whenever type-hints are completed on a file it should be added here so that # this file will continue to be checked by mypy. Errors from other files are # ignored. TYPED_FILES = { "src/urllib3/contrib/__init__.py", "src/urllib3/connection.py", "src/urllib3/... | null | null | null | |
urllib3/urllib3 | train | 449 | 51f4c679e5e6f4e3121c21b768517e92a9deb87d | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 96 | 13 | pytest.raises | test_start_closed_socket | import platform
import select
import socket
import ssl
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib3.util.ssltransport import SSLTransport
# consume... | OSError) | added | 6566db864c3ddd8aba1d39dba47a8a401cca0b9090a7bc4986a7d6e63dc0b6be | pytest.raises|test_start_closed_socket|import platform import select import socket import ssl from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib3.util.ssltra... | null | null | null |
urllib3/urllib3 | train | 449 | 51f4c679e5e6f4e3121c21b768517e92a9deb87d | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 121 | 12 | assert | test_wrap_existing_socket | import platform
import select
import socket
import ssl
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib3.util.ssltransport import SSLTransport
# consume... | None | added | 5080ab2a97288e241cf2a9d590b4e0e6c16941f78df4d7b07cc52f134672fec9 | assert|test_wrap_existing_socket|import platform import select import socket import ssl from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib3.util.ssltransport... | null | null | null |
urllib3/urllib3 | train | 449 | 51f4c679e5e6f4e3121c21b768517e92a9deb87d | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 134 | 17 | pytest.raises | test_unbuffered_text_makefile | import platform
import select
import socket
import ssl
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib3.util.ssltransport import SSLTransport
# consume... | ValueError) | added | 6cb4ec2ce433dfcd79b4056ef92190ba127bb2e1b302f95cce0b48ada9a30391 | pytest.raises|test_unbuffered_text_makefile|import platform import select import socket import ssl from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib3.util.s... | null | null | null |
urllib3/urllib3 | train | 449 | 51f4c679e5e6f4e3121c21b768517e92a9deb87d | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 193 | 12 | assert | test_ssl_object_attributes | import platform
import select
import socket
import ssl
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib3.util.ssltransport import SSLTransport
# consume... | list | modified | 0eeee9a98ed2f2d8f01fc24f5263911ab2835a3692f431a64e616244cfda9de4 | assert|test_ssl_object_attributes|import platform import select import socket import ssl from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib3.util.ssltranspor... | tuple | 196 | 12 |
urllib3/urllib3 | train | 450 | c321319a7804d7c8567b0beb43fddf6ade5a5200 | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 89 | 4 | assert | import os
import shutil
import subprocess
import nox
# Whenever type-hints are completed on a file it should be added here so that
# this file will continue to be checked by mypy. Errors from other files are
# ignored.
TYPED_FILES = {
"src/urllib3/contrib/__init__.py",
"src/urllib3/connection.py",
"src/ur... | process.stderr | modified | 5ce8b716fe7bbcafb8ff2c5a71ed15f8ec948412e6f4b63be5b35d3061ff1383 | assert||import os import shutil import subprocess import nox # Whenever type-hints are completed on a file it should be added here so that # this file will continue to be checked by mypy. Errors from other files are # ignored. TYPED_FILES = { "src/urllib3/contrib/__init__.py", "src/urllib3/connection.py", "src/urllib3/... | process.stderr | 91 | 4 | |
urllib3/urllib3 | train | 450 | c321319a7804d7c8567b0beb43fddf6ade5a5200 | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 27 | 13 | pytest.raises | test_match_hostname_empty_cert | import datetime
from unittest import mock
import pytest
from urllib3.connection import RECENT_DATE, CertificateError, _match_hostname
from urllib3.util.ssl_match_hostname import (
CertificateError as ImplementationCertificateError,
)
from urllib3.util.ssl_match_hostname import match_hostname
class TestConnectio... | ValueError) | modified | b085c0e8366179eff2e553b6d9274da33653ffb9158264e05255ffd768daeee4 | pytest.raises|test_match_hostname_empty_cert|import datetime from unittest import mock import pytest from urllib3.connection import RECENT_DATE, CertificateError, _match_hostname from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCertificateError, ) from urllib3.util.ssl_match_hostname impo... | ValueError) | 27 | 13 |
urllib3/urllib3 | train | 450 | c321319a7804d7c8567b0beb43fddf6ade5a5200 | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 83 | 13 | pytest.raises | test_match_hostname_ignore_common_name | import datetime
from unittest import mock
import pytest
from urllib3.connection import RECENT_DATE, CertificateError, _match_hostname
from urllib3.util.ssl_match_hostname import (
CertificateError as ImplementationCertificateError,
)
from urllib3.util.ssl_match_hostname import match_hostname
class TestConnectio... | ImplementationCertificateError, match="no appropriate subjectAltName fields were found") | added | 8ffc2728c5badcf37fdc02c46b521d451494195b13605f70ed3c2ba334f01545 | pytest.raises|test_match_hostname_ignore_common_name|import datetime from unittest import mock import pytest from urllib3.connection import RECENT_DATE, CertificateError, _match_hostname from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCertificateError, ) from urllib3.util.ssl_match_hostn... | null | null | null |
urllib3/urllib3 | train | 450 | c321319a7804d7c8567b0beb43fddf6ade5a5200 | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 102 | 12 | assert | test_match_hostname_ip_address | import datetime
from unittest import mock
import pytest
from urllib3.connection import RECENT_DATE, CertificateError, _match_hostname
from urllib3.util.ssl_match_hostname import (
CertificateError as ImplementationCertificateError,
)
from urllib3.util.ssl_match_hostname import match_hostname
class TestConnectio... | cert | added | 6f36ff82fa2b1e8dcd754777d33f4bac28ca3b3c4830b2b5b02867ecdd3bd211 | assert|test_match_hostname_ip_address|import datetime from unittest import mock import pytest from urllib3.connection import RECENT_DATE, CertificateError, _match_hostname from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCertificateError, ) from urllib3.util.ssl_match_hostname import matc... | null | null | null |
urllib3/urllib3 | train | 450 | c321319a7804d7c8567b0beb43fddf6ade5a5200 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 178 | 12 | assert | test_not_same_host_no_port_https | import http.client as httplib
import ssl
from http.client import HTTPException
from queue import Empty
from socket import error as SocketError
from ssl import SSLError as BaseSSLError
from test import SHORT_TIMEOUT
from unittest.mock import Mock
import pytest
from dummyserver.server import DEFAULT_CA
from urllib3._co... | not c.is_same_host(b) | modified | a6bbfa3fcdab4804830294c2fabb9d3afc516bb77b8f68790ad8422c7bd41389 | assert|test_not_same_host_no_port_https|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from unittest.mock import Mock import pytest from dummyserver.ser... | not c.is_same_host(b) | 178 | 12 |
urllib3/urllib3 | train | 450 | c321319a7804d7c8567b0beb43fddf6ade5a5200 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 240 | 8 | assert | test_exception_str | import http.client as httplib
import ssl
from http.client import HTTPException
from queue import Empty
from socket import error as SocketError
from ssl import SSLError as BaseSSLError
from test import SHORT_TIMEOUT
from unittest.mock import Mock
import pytest
from dummyserver.server import DEFAULT_CA
from urllib3._co... | "HTTPConnectionPool(host='localhost', port=None): Test." | modified | 68a3d558449618fe1f1e0527b249bb9aa623172c6421116ed3bad33c8b4b5cbb | assert|test_exception_str|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from unittest.mock import Mock import pytest from dummyserver.server import DEF... | "HTTPConnectionPool(host='localhost', port=None): Test." | 240 | 8 |
urllib3/urllib3 | train | 450 | c321319a7804d7c8567b0beb43fddf6ade5a5200 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 392 | 12 | assert | test_absolute_url | import http.client as httplib
import ssl
from http.client import HTTPException
from queue import Empty
from socket import error as SocketError
from ssl import SSLError as BaseSSLError
from test import SHORT_TIMEOUT
from unittest.mock import Mock
import pytest
from dummyserver.server import DEFAULT_CA
from urllib3._co... | c._absolute_url( "path?query=foo" ) | modified | c009c14651d5ff682d7c32f577599f88f8d02f5d83e9e2c7ff82399db42e53a3 | assert|test_absolute_url|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from unittest.mock import Mock import pytest from dummyserver.server import DEFA... | c._absolute_url( "path?query=foo" ) | 392 | 12 |
urllib3/urllib3 | train | 450 | c321319a7804d7c8567b0beb43fddf6ade5a5200 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 505 | 12 | assert | test_custom_http_response_class | import http.client as httplib
import ssl
from http.client import HTTPException
from queue import Empty
from socket import error as SocketError
from ssl import SSLError as BaseSSLError
from test import SHORT_TIMEOUT
from unittest.mock import Mock
import pytest
from dummyserver.server import DEFAULT_CA
from urllib3._co... | isinstance(response, CustomHTTPResponse) | modified | c6aaed19ec1e5aa80a9272d5e000d41562da1420a6a925ef82c59d9bda743a95 | assert|test_custom_http_response_class|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from unittest.mock import Mock import pytest from dummyserver.serv... | isinstance(response, CustomHTTPResponse) | 505 | 12 |
urllib3/urllib3 | train | 451 | 26e9f27692193f898e78f88ea8169558ced30d12 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 316 | 8 | assert | test_parse_and_normalize_url_paths | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | expected_url.url | modified | 80dbfdd9a20e24db0c6f187a40846df9545e5179c1f70420b52c4ea297d09659 | assert|test_parse_and_normalize_url_paths|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warning... | expected_url.url | 316 | 8 |
urllib3/urllib3 | train | 451 | 26e9f27692193f898e78f88ea8169558ced30d12 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 319 | 13 | pytest.raises | test_parse_url_invalid_IPv6 | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | LocationParseError) | modified | c85608211379446ece31a2bae93fff925a4958a96284a64efaeef86e86f72396 | pytest.raises|test_parse_url_invalid_IPv6|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warning... | LocationParseError) | 319 | 13 |
urllib3/urllib3 | train | 451 | 26e9f27692193f898e78f88ea8169558ced30d12 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 328 | 8 | assert | test_Url_str | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | U.url | modified | 9a1717224cccb860ec66ff3b78d0064854c0f1130c00b51e3868a21362e595fe | assert|test_Url_str|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.e... | U.url | 328 | 8 |
urllib3/urllib3 | train | 451 | 26e9f27692193f898e78f88ea8169558ced30d12 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 345 | 8 | assert | test_request_uri | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | expected_request_uri | modified | 3997477ffd3d4cf09f21435e65de3d62d64e9eb0f8b74e1116accb8be9089fb2 | assert|test_request_uri|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urlli... | expected_request_uri | 345 | 8 |
urllib3/urllib3 | train | 452 | 3346a2a5a7d94e702af49afe77d89d23bf1d0d8a | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 133 | 12 | assert | test_same_host_no_port_http | import http.client as httplib
import ssl
from http.client import HTTPException
from queue import Empty
from socket import error as SocketError
from ssl import SSLError as BaseSSLError
from test import SHORT_TIMEOUT
from unittest.mock import Mock
import pytest
from dummyserver.server import DEFAULT_CA
from urllib3._co... | c.is_same_host(b) | modified | 8d6e1112d231cd859b7de4cfaa3c521ccf3bcb7f254e88928ce5d43f31cdc490 | assert|test_same_host_no_port_http|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from unittest.mock import Mock import pytest from dummyserver.server i... | c.is_same_host(b) | 132 | 12 |
urllib3/urllib3 | train | 452 | 3346a2a5a7d94e702af49afe77d89d23bf1d0d8a | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 348 | 17 | pytest.raises | test_empty_does_not_put_conn | import http.client as httplib
import ssl
from http.client import HTTPException
from queue import Empty
from socket import error as SocketError
from ssl import SSLError as BaseSSLError
from test import SHORT_TIMEOUT
from unittest.mock import Mock
import pytest
from dummyserver.server import DEFAULT_CA
from urllib3._co... | EmptyPoolError) | added | 32254e9775ac6c2a88dd8fcf17a492ae4d85f535d7d9bf76b76a85395da7406f | pytest.raises|test_empty_does_not_put_conn|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from unittest.mock import Mock import pytest from dummyserver.... | null | null | null |
urllib3/urllib3 | train | 452 | 3346a2a5a7d94e702af49afe77d89d23bf1d0d8a | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 392 | 8 | assert | test_pool_close_twice | import http.client as httplib
import ssl
from http.client import HTTPException
from queue import Empty
from socket import error as SocketError
from ssl import SSLError as BaseSSLError
from test import SHORT_TIMEOUT
from unittest.mock import Mock
import pytest
from dummyserver.server import DEFAULT_CA
from urllib3._co... | None | added | 7c92f46d360b215fb871f27926f709ad8a90e5c091074a8a1f5c68e84936e8fd | assert|test_pool_close_twice|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from unittest.mock import Mock import pytest from dummyserver.server import ... | null | null | null |
urllib3/urllib3 | train | 452 | 3346a2a5a7d94e702af49afe77d89d23bf1d0d8a | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 404 | 12 | assert | test_pool_timeouts | import http.client as httplib
import ssl
from http.client import HTTPException
from queue import Empty
from socket import error as SocketError
from ssl import SSLError as BaseSSLError
from test import SHORT_TIMEOUT
from unittest.mock import Mock
import pytest
from dummyserver.server import DEFAULT_CA
from urllib3._co... | Timeout.DEFAULT_TIMEOUT | added | af135425826837310ba923787fbd2afd39343a600b74565896fa62eb0333dc6f | assert|test_pool_timeouts|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from unittest.mock import Mock import pytest from dummyserver.server import DEF... | null | null | null |
urllib3/urllib3 | train | 453 | d1a96dff4051cf87f9106a686f3dd04617006b35 | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 90 | 4 | assert | import os
import shutil
import subprocess
import nox
# Whenever type-hints are completed on a file it should be added here so that
# this file will continue to be checked by mypy. Errors from other files are
# ignored.
TYPED_FILES = {
"src/urllib3/contrib/__init__.py",
"src/urllib3/connection.py",
"src/ur... | process.stderr | modified | 574c7c4777ace23dc746f64f94c14bf58283255d1e9b349e96e8f7700ac6bcc4 | assert||import os import shutil import subprocess import nox # Whenever type-hints are completed on a file it should be added here so that # this file will continue to be checked by mypy. Errors from other files are # ignored. TYPED_FILES = { "src/urllib3/contrib/__init__.py", "src/urllib3/connection.py", "src/urllib3/... | process.stderr | 89 | 4 | |
urllib3/urllib3 | train | 454 | f0b4608a961104c3663f56f8f95cfd0d03778f25 | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 91 | 4 | assert | import os
import shutil
import subprocess
import nox
# Whenever type-hints are completed on a file it should be added here so that
# this file will continue to be checked by mypy. Errors from other files are
# ignored.
TYPED_FILES = {
"src/urllib3/contrib/__init__.py",
"src/urllib3/connection.py",
"src/ur... | process.stderr | modified | 400dbd442d42798705a6731074e97965cf9a4a404cf2ac1a13ab47c432d4fe16 | assert||import os import shutil import subprocess import nox # Whenever type-hints are completed on a file it should be added here so that # this file will continue to be checked by mypy. Errors from other files are # ignored. TYPED_FILES = { "src/urllib3/contrib/__init__.py", "src/urllib3/connection.py", "src/urllib3/... | process.stderr | 90 | 4 | |
urllib3/urllib3 | train | 455 | bf094618842b3dfc53a979f576e58604956a29cb | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 92 | 4 | assert | import os
import shutil
import subprocess
import nox
# Whenever type-hints are completed on a file it should be added here so that
# this file will continue to be checked by mypy. Errors from other files are
# ignored.
TYPED_FILES = {
"src/urllib3/contrib/__init__.py",
"src/urllib3/connection.py",
"src/ur... | process.stderr | modified | 0a89ba874622336bcd56e43009e8d92cb6fbf5c8a0b8610ead6718d07cf63765 | assert||import os import shutil import subprocess import nox # Whenever type-hints are completed on a file it should be added here so that # this file will continue to be checked by mypy. Errors from other files are # ignored. TYPED_FILES = { "src/urllib3/contrib/__init__.py", "src/urllib3/connection.py", "src/urllib3/... | process.stderr | 91 | 4 | |
urllib3/urllib3 | train | 456 | e208fec114c88e4ea31c60a00b4e8490071fdc1a | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 27 | 13 | pytest.raises | test_match_hostname_no_cert | import datetime
import socket
from unittest import mock
import pytest
from urllib3.connection import (
RECENT_DATE,
CertificateError,
HTTPSConnection,
_match_hostname,
)
from urllib3.util.ssl_match_hostname import (
CertificateError as ImplementationCertificateError,
)
from urllib3.util.ssl_match_... | ValueError) | added | d60285c26b0c9578b2f9da0c6fc273c2d2541bf0f56ed4762dd532bbf663c6f5 | pytest.raises|test_match_hostname_no_cert|import datetime import socket from unittest import mock import pytest from urllib3.connection import ( RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, ) from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCertificateError, ) from url... | null | null | null |
urllib3/urllib3 | train | 456 | e208fec114c88e4ea31c60a00b4e8490071fdc1a | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 54 | 12 | assert | test_match_hostname_mismatch | import datetime
import socket
from unittest import mock
import pytest
from urllib3.connection import (
RECENT_DATE,
CertificateError,
HTTPSConnection,
_match_hostname,
)
from urllib3.util.ssl_match_hostname import (
CertificateError as ImplementationCertificateError,
)
from urllib3.util.ssl_match_... | cert | added | 7ba888ffcdb8662d1773ff06a9e6b4dea56c5238543089169e987bcffd43fe27 | assert|test_match_hostname_mismatch|import datetime import socket from unittest import mock import pytest from urllib3.connection import ( RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, ) from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCertificateError, ) from urllib3.u... | null | null | null |
urllib3/urllib3 | train | 456 | e208fec114c88e4ea31c60a00b4e8490071fdc1a | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 64 | 12 | assert_* | test_match_hostname_no_dns | import datetime
import socket
from unittest import mock
import pytest
from urllib3.connection import (
RECENT_DATE,
CertificateError,
HTTPSConnection,
_match_hostname,
)
from urllib3.util.ssl_match_hostname import (
CertificateError as ImplementationCertificateError,
)
from urllib3.util.ssl_match_... | {"subjectAltName": [("DNS", "")]}) | added | 9d8747778d465e61281fd9f8bafc38adc0691a61d8ee5d31f940390992b7e97b | assert_*|test_match_hostname_no_dns|import datetime import socket from unittest import mock import pytest from urllib3.connection import ( RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, ) from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCertificateError, ) from urllib3.u... | null | null | null |
urllib3/urllib3 | train | 456 | e208fec114c88e4ea31c60a00b4e8490071fdc1a | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 103 | 12 | assert_* | test_match_hostname_ip_address | import datetime
import socket
from unittest import mock
import pytest
from urllib3.connection import (
RECENT_DATE,
CertificateError,
HTTPSConnection,
_match_hostname,
)
from urllib3.util.ssl_match_hostname import (
CertificateError as ImplementationCertificateError,
)
from urllib3.util.ssl_match_... | {"subjectAltName": [("IP Address", "1.1.1.1")]}) | added | 107ace7631d88253b3bdbb26bd3f082dcb36a29ea46f0d63d9754ce65b73874c | assert_*|test_match_hostname_ip_address|import datetime import socket from unittest import mock import pytest from urllib3.connection import ( RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, ) from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCertificateError, ) from urlli... | null | null | null |
urllib3/urllib3 | train | 457 | f4d929fb87a6fd8a93abff3fb5e6345495c0fb7b | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 652 | 12 | assert | test_has_ipv6_disabled_on_compile | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | not _has_ipv6("::1") | modified | 7e2bf049d27996140726b5d883a83aa18fc6fe8e053521f30852f2ae3e28f626 | assert|test_has_ipv6_disabled_on_compile|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings... | not _has_ipv6("::1") | 652 | 12 |
urllib3/urllib3 | train | 457 | f4d929fb87a6fd8a93abff3fb5e6345495c0fb7b | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 678 | 13 | pytest.raises | test_assert_header_parsing_throws_typeerror_with_non_headers | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | TypeError) | modified | 24ddffc68ec43f56410cdb5daf866ce4df8fdba564e918c26064d68bce2faba0 | pytest.raises|test_assert_header_parsing_throws_typeerror_with_non_headers|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import a... | TypeError) | 678 | 13 |
urllib3/urllib3 | train | 457 | f4d929fb87a6fd8a93abff3fb5e6345495c0fb7b | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 757 | 8 | assert | test_to_str | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | expected | modified | ca0fb0697cbb5e2d29cf5629e58404652f2c0d2d062ab2b88f4b2d6ff962a291 | assert|test_to_str|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.ex... | expected | 757 | 8 |
urllib3/urllib3 | train | 457 | f4d929fb87a6fd8a93abff3fb5e6345495c0fb7b | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 795 | 8 | assert | test_resolve_cert_reqs | import io
import logging
import socket
import ssl
import sys
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli
from unittest.mock import Mock, patch
import pytest
from urllib3 import add_stderr_logger, disable_warnings, util
from urllib3.exceptions import (... | requirements | modified | 145cf99882a193ebd917cb6c89abb41c5f440cd99ce52b2aced72fe52d2abd48 | assert|test_resolve_cert_reqs|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from unittest.mock import Mock, patch import pytest from urllib3 import add_stderr_logger, disable_warnings, util from... | requirements | 795 | 8 |
urllib3/urllib3 | train | 458 | 4e13a3e440c402891d3a94171544957ae9c5d249 | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 93 | 4 | assert | import os
import shutil
import subprocess
import nox
# Whenever type-hints are completed on a file it should be added here so that
# this file will continue to be checked by mypy. Errors from other files are
# ignored.
TYPED_FILES = {
"src/urllib3/contrib/__init__.py",
"src/urllib3/connection.py",
"src/ur... | process.stderr | modified | 1f34bcebd008ee91211c547c634eff6348b1250d3edd46ef53536fd798b1a6f7 | assert||import os import shutil import subprocess import nox # Whenever type-hints are completed on a file it should be added here so that # this file will continue to be checked by mypy. Errors from other files are # ignored. TYPED_FILES = { "src/urllib3/contrib/__init__.py", "src/urllib3/connection.py", "src/urllib3/... | process.stderr | 92 | 4 | |
urllib3/urllib3 | train | 459 | 04bf28eb40c68735c719ae044b0af00c23186b03 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 351 | 16 | assert | test_tls_in_tls_tunnel | import platform
import select
import socket
import ssl
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib3.util.ssltransport import SSLTransport
# consume... | None | added | 2611da5dfdf6d96b869956cbfa7dc9c6ffd061e351c6db4fc9a0bf2b24e7e643 | assert|test_tls_in_tls_tunnel|import platform import select import socket import ssl from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib3.util.ssltransport im... | null | null | null |
urllib3/urllib3 | train | 459 | 04bf28eb40c68735c719ae044b0af00c23186b03 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 376 | 12 | assert | test_wrong_sni_hint | import platform
import select
import socket
import ssl
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib3.util.ssltransport import SSLTransport
# consume... | [ssl.SSLError, ssl.CertificateError] | added | 70c16a64defbf9f77e0abefaa97b4b057f8d96b918496c9946cbaf6396bc24a9 | assert|test_wrong_sni_hint|import platform import select import socket import ssl from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib3.util.ssltransport impor... | null | null | null |
urllib3/urllib3 | train | 459 | 04bf28eb40c68735c719ae044b0af00c23186b03 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 403 | 16 | assert | test_tls_in_tls_makefile_raw_rw_binary | import platform
import select
import socket
import ssl
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib3.util.ssltransport import SSLTransport
# consume... | None | added | d14376c668fdb074ef2f74e6eb0ab1333e9626989a4e52bc72ce57d5c765504b | assert|test_tls_in_tls_makefile_raw_rw_binary|import platform import select import socket import ssl from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib3.util... | null | null | null |
urllib3/urllib3 | train | 459 | 04bf28eb40c68735c719ae044b0af00c23186b03 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 502 | 8 | assert_* | test_constructor_params | import platform
import select
import socket
import ssl
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib3.util.ssltransport import SSLTransport
# consume... | mock.ANY) | added | b0d09ce3cc69590095baca18ecd6d8155aeb30482a7d0eb87238e50a7d4791c3 | assert_*|test_constructor_params|import platform import select import socket import ssl from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib3.util.ssltransport... | null | null | null |
urllib3/urllib3 | train | 460 | 52079f1df9d1e3810e02762458bc665c1a438778 | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 94 | 4 | assert | import os
import shutil
import subprocess
import nox
# Whenever type-hints are completed on a file it should be added here so that
# this file will continue to be checked by mypy. Errors from other files are
# ignored.
TYPED_FILES = {
"src/urllib3/contrib/__init__.py",
"src/urllib3/connection.py",
"src/ur... | process.stderr | modified | 93fd091d7d00abb430c2599a59977bfac2b4300554b06dedee30cf0d449322dd | assert||import os import shutil import subprocess import nox # Whenever type-hints are completed on a file it should be added here so that # this file will continue to be checked by mypy. Errors from other files are # ignored. TYPED_FILES = { "src/urllib3/contrib/__init__.py", "src/urllib3/connection.py", "src/urllib3/... | process.stderr | 93 | 4 | |
urllib3/urllib3 | train | 461 | 13678970dc9bae35a596310e047aca7c27537181 | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 340 | 12 | assert | test_body | import json
from test import LONG_TIMEOUT
import pytest
from dummyserver.server import HAS_IPV6
from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase
from urllib3 import request
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError, URLSchemeUnk... | b"test" | added | 8c2ad5d168ae18db287eb8bc6c611f42730b53ba93d2d7161041028e38e3591d | assert|test_body|import json from test import LONG_TIMEOUT import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import request from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryErro... | null | null | null |
urllib3/urllib3 | train | 461 | 13678970dc9bae35a596310e047aca7c27537181 | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 369 | 12 | assert | test_encode_http_target | import json
from test import LONG_TIMEOUT
import pytest
from dummyserver.server import HAS_IPV6
from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase
from urllib3 import request
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError, URLSchemeUnk... | expected_target | added | 0060726e1dbd535442bb083ee8431ddf6f474e832e090e1d68b26ae11abb2a7e | assert|test_encode_http_target|import json from test import LONG_TIMEOUT import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import request from urllib3.connectionpool import port_by_scheme from urllib3.exceptions impor... | null | null | null |
urllib3/urllib3 | train | 461 | 13678970dc9bae35a596310e047aca7c27537181 | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 374 | 8 | assert | test_top_level_request | import json
from test import LONG_TIMEOUT
import pytest
from dummyserver.server import HAS_IPV6
from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase
from urllib3 import request
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError, URLSchemeUnk... | b"Dummy server!" | added | b9b9afebbe691680d3085f9d5e044f14b8cf05f7135764c5113a7faaf5a783b4 | assert|test_top_level_request|import json from test import LONG_TIMEOUT import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import request from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import... | null | null | null |
urllib3/urllib3 | train | 461 | 13678970dc9bae35a596310e047aca7c27537181 | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 379 | 8 | assert | test_top_level_request_with_body | import json
from test import LONG_TIMEOUT
import pytest
from dummyserver.server import HAS_IPV6
from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase
from urllib3 import request
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError, URLSchemeUnk... | b"test" | added | e99e77d1e02304e0bb66cc696acb9528f1d64e94d12958efa62b147b8bcee467 | assert|test_top_level_request_with_body|import json from test import LONG_TIMEOUT import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import request from urllib3.connectionpool import port_by_scheme from urllib3.excepti... | null | null | null |
urllib3/urllib3 | train | 462 | 97a16d74f287ce84dcb14aa90bf28c9088579257 | train | test/contrib/test_socks.py | train | urllib3/urllib3:test/contrib/test_socks.py | 658 | 12 | assert | test_socks4_with_username | import socket
import threading
from socket import getaddrinfo as real_getaddrinfo
from socket import timeout as SocketTimeout
from test import SHORT_TIMEOUT
from unittest.mock import patch
import pytest
import socks as py_socks
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import ... | "16.17.18.19" | added | da761ba561db40b7c4163d3612e4625ceccdeea785d954ad13858684cc415e8a | assert|test_socks4_with_username|import socket import threading from socket import getaddrinfo as real_getaddrinfo from socket import timeout as SocketTimeout from test import SHORT_TIMEOUT from unittest.mock import patch import pytest import socks as py_socks from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS fr... | null | null | null |
urllib3/urllib3 | train | 462 | 97a16d74f287ce84dcb14aa90bf28c9088579257 | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 99 | 13 | pytest.raises | test_match_hostname_ignore_common_name | import datetime
import socket
from unittest import mock
import pytest
from urllib3.connection import (
RECENT_DATE,
CertificateError,
HTTPSConnection,
_match_hostname,
)
from urllib3.util.ssl_match_hostname import (
CertificateError as ImplementationCertificateError,
)
from urllib3.util.ssl_match_... | ImplementationCertificateError, match="no appropriate subjectAltName fields were found") | added | e0d5b337cb500b1621fa93e3ed00e61ffd810157248cb05aca33cfbaafbd09df | pytest.raises|test_match_hostname_ignore_common_name|import datetime import socket from unittest import mock import pytest from urllib3.connection import ( RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, ) from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCertificateError,... | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.