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
554
82d1f1833e9880701f72ad9a50155e20dcc60efd
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
472
17
pytest.raises
test_forwarding_proxy_request_timeout
import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_I...
MaxRetryError)
modified
bb4ff4cc21b209c6212bcffd38ce6fab4b0ffdee949b7776a1fd893c8ae33282
pytest.raises|test_forwarding_proxy_request_timeout|import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urllib3.exception...
MaxRetryError)
471
17
urllib3/urllib3
train
555
f0dffb4e2437cb2da2ba0a6bbea6211f6fd0fa4b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
498
17
pytest.raises
test_https_connection_read_timeout
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
ReadTimeoutError)
modified
083a4c34b7aad2ba6f71ce9fd48d0f5a56fd4da5dc586e166026e99d66099c8a
pytest.raises|test_https_connection_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections impo...
ReadTimeoutError)
496
17
urllib3/urllib3
train
555
f0dffb4e2437cb2da2ba0a6bbea6211f6fd0fa4b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
817
21
pytest.raises
test_connection_closed_on_read_timeout_preload_false
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
ReadTimeoutError)
modified
eefde343b04be289c7476cd67c6d6781645bf5ba4a1c5db48ecff6b23e4c3bc2
pytest.raises|test_connection_closed_on_read_timeout_preload_false|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time fro...
ReadTimeoutError)
815
21
urllib3/urllib3
train
555
f0dffb4e2437cb2da2ba0a6bbea6211f6fd0fa4b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,360
12
assert
test_retry_ssl_error
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
b"Success"
modified
f723f3bd67c61a19344ccb669b6c679ab8cadb6243f76c28f881aef1e6f81339
assert|test_retry_ssl_error|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from p...
b"Success"
1,358
12
urllib3/urllib3
train
555
f0dffb4e2437cb2da2ba0a6bbea6211f6fd0fa4b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,802
16
assert
test_enforce_content_length_get
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
False
modified
ef891d66e82a4c0f0208ad838f8d28c8030a4ed139c020ab26dac1cb06dcc503
assert|test_enforce_content_length_get|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import Ordered...
False
1,800
16
urllib3/urllib3
train
556
622aa69a1f65459232cadf7ff09f9a847d4c89b4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
464
16
assert
test_server_hostname
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
"localhost"
added
15f6ead4dfffb1dba61c2469af194b735d744ef4ce761e64efd2c68377acd970
assert|test_server_hostname|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
null
null
null
urllib3/urllib3
train
556
622aa69a1f65459232cadf7ff09f9a847d4c89b4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
528
12
assert
test_assert_invalid_fingerprint
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
f'Fingerprints did not match. Expected "{expected}", got "{got}"'
added
90ef63098bd6a9052cd7f760193765aaab290a0fe7240de1c61864adb73be664
assert|test_assert_invalid_fingerprint|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, reso...
null
null
null
urllib3/urllib3
train
556
622aa69a1f65459232cadf7ff09f9a847d4c89b4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
670
17
pytest.raises
test_enhanced_timeout
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
ConnectTimeoutError)
added
01944e26f4ea081d2c96bc7c6302747ffe2cbf97b850e13dbc4472bb6c0c42e3
pytest.raises|test_enhanced_timeout|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolve...
null
null
null
urllib3/urllib3
train
556
622aa69a1f65459232cadf7ff09f9a847d4c89b4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
1,025
17
pytest.raises
test_common_name_without_san_with_different_common_name
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
MaxRetryError)
added
5fec685776c1baaf6d9671b9c49c7e03ba744a8ebfd60f1ccaea1afa3d69c50e
pytest.raises|test_common_name_without_san_with_different_common_name|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl...
null
null
null
urllib3/urllib3
train
557
9f4d05c11eb2f80682c1b7a2671b0636292ef932
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
526
12
assert
test_forwarding_proxy_connect_timeout
import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_I...
ProxyError
modified
56566748dc59435720e89ea7d38b598d35e4f0dbba843e43f5af4b7d2c3c5b6c
assert|test_forwarding_proxy_connect_timeout|import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urllib3.exceptions from ...
ProxyError
523
12
urllib3/urllib3
train
557
9f4d05c11eb2f80682c1b7a2671b0636292ef932
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
542
17
pytest.raises
test_tunneling_proxy_connect_timeout
import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_I...
MaxRetryError)
modified
519c0779e3ec6faca40f0b7b22b37d9edc538b7a4e9b819f78029d6f09bad08d
pytest.raises|test_tunneling_proxy_connect_timeout|import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urllib3.exceptions...
MaxRetryError)
539
17
urllib3/urllib3
train
557
9f4d05c11eb2f80682c1b7a2671b0636292ef932
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
629
13
pytest.raises
test_invalid_schema
import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_I...
ProxySchemeUnknown, match=error_msg)
added
ab2c252398a50c8cd9667086e3251b1917968bf90e8ef3e7918bd29eef90816d
pytest.raises|test_invalid_schema|import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urllib3.exceptions from dummyserver...
null
null
null
urllib3/urllib3
train
557
9f4d05c11eb2f80682c1b7a2671b0636292ef932
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
719
12
assert
test_https_proxy_no_san
import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_I...
isinstance(ssl_error, SSLError)
added
2d740fa7ae146c35af7800bddaa9c1cc3b96b70193a349276b27796b9e1bb675
assert|test_https_proxy_no_san|import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urllib3.exceptions from dummyserver.se...
null
null
null
urllib3/urllib3
train
558
45fc38b67f98be57af34cafa1fbae51f0a8c81ba
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
99
13
pytest.raises
test_match_hostname_more_than_one_dnsname_error
import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPError, ProxyError from urllib3...
CertificateError, match="doesn't match either of")
modified
7a58ff966d4db7c6b38c22b66deac046d5a2d22bd6fa340ecf8ff10696c0349a
pytest.raises|test_match_hostname_more_than_one_dnsname_error|import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions im...
CertificateError, match="doesn't match either of")
97
13
urllib3/urllib3
train
558
45fc38b67f98be57af34cafa1fbae51f0a8c81ba
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
103
13
pytest.raises
test_dnsname_match_include_more_than_one_wildcard_error
import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPError, ProxyError from urllib3...
CertificateError, match="too many wildcards in certificate")
modified
6e927ef58ba630b93f59d7787c843fd48e83e9ca2bf75cb3645cccb5d3eee20d
pytest.raises|test_dnsname_match_include_more_than_one_wildcard_error|import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.excep...
CertificateError, match="too many wildcards in certificate")
101
13
urllib3/urllib3
train
558
45fc38b67f98be57af34cafa1fbae51f0a8c81ba
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
187
8
assert
test_HTTPSConnection_default_socket_options
import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPError, ProxyError from urllib3...
[(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)]
modified
0b6d8988fafaf8c7c19dfac06eb979d44bb0e4e3d704372f30b2b604edb31e2e
assert|test_HTTPSConnection_default_socket_options|import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPEr...
[(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)]
185
8
urllib3/urllib3
train
558
45fc38b67f98be57af34cafa1fbae51f0a8c81ba
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
201
8
assert
test_wrap_proxy_error
import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPError, ProxyError from urllib3...
True
added
6ceb29e69f0237d19699311eb3a667c260147b23107edd5d69e6a820b32c6bbf
assert|test_wrap_proxy_error|import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPError, ProxyError from u...
null
null
null
urllib3/urllib3
train
559
fd90d24faed6f5214408afce948094ccf9ce26c2
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
248
8
assert
test_http_connection_from_url_case_insensitive
import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import ClosedPoolError, LocationVal...
other_pool
modified
f24fb1f9b58c224c80b62ebf6c2826a84a7869fcbed281a75dc7ed74810be1ed
assert|test_http_connection_from_url_case_insensitive|import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from ur...
other_pool
248
8
urllib3/urllib3
train
559
fd90d24faed6f5214408afce948094ccf9ce26c2
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
281
8
assert
test_http_connection_from_context_case_insensitive
import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import ClosedPoolError, LocationVal...
all(isinstance(key, PoolKey) for key in p.pools.keys())
modified
6f1f1f16241b017d77fe3cfca85dcb94b7bf5dd4827ca22585ab4e8a13a76cc5
assert|test_http_connection_from_context_case_insensitive|import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool fro...
all(isinstance(key, PoolKey) for key in p.pools.keys())
281
8
urllib3/urllib3
train
559
fd90d24faed6f5214408afce948094ccf9ce26c2
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
358
8
assert
test_override_pool_kwargs_host
import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import ClosedPoolError, LocationVal...
not default_pool.block
modified
99137135e0f9cbbb496fac7e90a703aade9c7df1ce3ede4a769843459e14ff3f
assert|test_override_pool_kwargs_host|import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions...
not default_pool.block
358
8
urllib3/urllib3
train
559
fd90d24faed6f5214408afce948094ccf9ce26c2
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
392
8
assert
test_merge_pool_kwargs_none
import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import ClosedPoolError, LocationVal...
merged
modified
5b104aa04768c5d2c3080defb1d5795e82b2e5b33395e42d2538d2d8aaa98519
assert|test_merge_pool_kwargs_none|import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions im...
merged
392
8
urllib3/urllib3
train
559
fd90d24faed6f5214408afce948094ccf9ce26c2
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
417
8
assert
test_authority_matches_urllib_netloc
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, ...
expected_authority
added
24a73efe58e3997d1430761349830ffa12833644f5cf8024eb69534a984cbef4
assert|test_authority_matches_urllib_netloc|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock...
null
null
null
urllib3/urllib3
train
559
fd90d24faed6f5214408afce948094ccf9ce26c2
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
733
8
assert
test_is_fp_closed_object_has_fp
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, ...
not is_fp_closed(FpFile())
added
6b370952b14747804b3270861b45da0d5e28a3722a91915547b67a2edbb5230a
assert|test_is_fp_closed_object_has_fp|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from...
null
null
null
urllib3/urllib3
train
559
fd90d24faed6f5214408afce948094ccf9ce26c2
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
842
13
pytest.raises
test_create_connection_error
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, ...
OSError, match="getaddrinfo returns an empty list")
added
d4612c58d19d76260de4c1b1f57a4df701d36c86e7bc85f2f9be913024242644
pytest.raises|test_create_connection_error|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock ...
null
null
null
urllib3/urllib3
train
559
fd90d24faed6f5214408afce948094ccf9ce26c2
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
1,094
13
pytest.raises
test_parse_url_without_idna
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, ...
LocationParseError, match=f"Failed to parse: {url}")
added
7ac7987f5506b340407e1aa8fb2cc095fefc2207c86a9327fc546415b827e3d1
pytest.raises|test_parse_url_without_idna|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock f...
null
null
null
urllib3/urllib3
train
560
e7638eebcd0384c2d2cbb49340bc06ac03044c77
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
577
21
pytest.raises
test_delayed_body_read_timeout
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
ReadTimeoutError)
modified
1f437182fce81cbf2e6d2172a84f90aa5aef97f3da9d94807b45efc4a2f07406
pytest.raises|test_delayed_body_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import O...
ReadTimeoutError)
577
21
urllib3/urllib3
train
560
e7638eebcd0384c2d2cbb49340bc06ac03044c77
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
965
12
assert
test_simple
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
sorted( [ b"GET http://google.com/ HTTP/1.1", b"Host: google.com", b"Accept-Encoding: identity", b"Accept: */*", b"User-Agent: " + _get_default_user_agent().encode("utf-8"), b"", b"", ] )
modified
8c54f4ad446c030a85e35cc79c75f4587b74d75a3fa71ac2d540038b68564c79
assert|test_simple|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib im...
sorted( [ b"GET http://google.com/ HTTP/1.1", b"Host: google.com", b"Accept-Encoding: identity", b"Accept: */*", b"User-Agent: " + _get_default_user_agent().encode("utf-8"), b"", b"", ] )
965
12
urllib3/urllib3
train
560
e7638eebcd0384c2d2cbb49340bc06ac03044c77
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,306
8
assert
test_ssl_failed_fingerprint_verification
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
isinstance(cm.value.reason, SSLError)
modified
cdeefb33393719982030b4a45dbd92177c8183276794fe7c7d336073e2f43258
assert|test_ssl_failed_fingerprint_verification|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections impor...
isinstance(cm.value.reason, SSLError)
1,306
8
urllib3/urllib3
train
560
e7638eebcd0384c2d2cbb49340bc06ac03044c77
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,977
8
assert
test_content_length_0_by_default
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
sent_bytes
modified
fa1ff1eb4daad1f7414bcf716af4a1a3244620f3611a3fec6cf866f3a1baa2d7
assert|test_content_length_0_by_default|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import Ordere...
sent_bytes
1,977
8
urllib3/urllib3
train
561
3c52067ff4dc5353bc969f4e2a7f24443e361e3b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
955
8
assert
test_default_ssl_context_ssl_min_max_versions
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
ssl.SSLContext().maximum_version
added
fe296043fa366380de2d5d4a7b230e99ce17db7f11a54e399c0c00186a332f82
assert|test_default_ssl_context_ssl_min_max_versions|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_...
null
null
null
urllib3/urllib3
train
561
3c52067ff4dc5353bc969f4e2a7f24443e361e3b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
959
8
assert
test_ssl_context_ssl_version_uses_ssl_min_max_versions
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
self.tls_version()
added
0514e55588bf58ba44803d424859ff60b2c376723d9149200546ba87f2b994b7
assert|test_ssl_context_ssl_version_uses_ssl_min_max_versions|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context...
null
null
null
urllib3/urllib3
train
561
3c52067ff4dc5353bc969f4e2a7f24443e361e3b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
1,032
12
assert
test_common_name_without_san_with_different_common_name
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
"mismatch, certificate is not valid for 'localhost'" in str( e.value ) or "hostname 'localhost' doesn't match 'example.com'" in str(e.value)
added
b3fed37a5ffa42d9e5dec417b053334ab950e481086ce5d59dfffdec3e906ab4
assert|test_common_name_without_san_with_different_common_name|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_contex...
null
null
null
urllib3/urllib3
train
561
3c52067ff4dc5353bc969f4e2a7f24443e361e3b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
1,071
12
assert
test_hostname_checks_common_name_respected
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
SSLError
added
60b125f46dd94f55a4d21f1f71e93abbf1b7f5c4fec6a38dc7e5b962a1c84983
assert|test_hostname_checks_common_name_respected|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_pas...
null
null
null
urllib3/urllib3
train
562
791c385b7e9fcdfa2014bbce04d39c0030c565c1
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
456
8
assert
test_e2e_connect_to_ipv6_scoped
import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import ClosedPoolError, LocationVal...
("a::b%zone", 80)
modified
1ca989c9e38c7620b3807fe2e47c94224032289d8bfa8971bacf52b582b78f41
assert|test_e2e_connect_to_ipv6_scoped|import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exception...
("a::b%zone", 80)
456
8
urllib3/urllib3
train
562
791c385b7e9fcdfa2014bbce04d39c0030c565c1
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
359
12
assert
test_headers_http_header_dict
import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTTPResponse, request from urllib3.connectionpool import port_by_scheme fr...
[ ["Foo", "bar"], ["Multi", "1"], ["Multi", "2"], ["Baz", "quux"], ]
modified
65a9888be5d07104c9328042ab50c7be5c16c96b9059499eb443e08e3f6f3ca9
assert|test_headers_http_header_dict|import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTTPResponse, request from urllib3.conn...
"1, 2"
357
12
urllib3/urllib3
train
562
791c385b7e9fcdfa2014bbce04d39c0030c565c1
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
440
8
assert
test_top_level_request_with_preload_content
import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTTPResponse, request from urllib3.connectionpool import port_by_scheme fr...
None
added
03eaea2a514da201b227516658343aaf84099bffe1b5a6e57a323819a7db608b
assert|test_top_level_request_with_preload_content|import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTTPResponse, request fro...
null
null
null
urllib3/urllib3
train
562
791c385b7e9fcdfa2014bbce04d39c0030c565c1
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
452
8
assert
test_top_level_request_with_decode_content
import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTTPResponse, request from urllib3.connectionpool import port_by_scheme fr...
b"hello, world!"
modified
344f044e706eac5da9a1de7434fe6546336682a35cdc01e70b7784029175a607
assert|test_top_level_request_with_decode_content|import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTTPResponse, request from...
b"hello, world!"
453
8
urllib3/urllib3
train
562
791c385b7e9fcdfa2014bbce04d39c0030c565c1
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
420
12
assert
test_connection_refused
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
None
modified
10efbe8205b7f27570a7b0f28b995f8c887b1d6a4acf7a595dfcdb6477ab44c6
assert|test_connection_refused|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict fro...
None
420
12
urllib3/urllib3
train
562
791c385b7e9fcdfa2014bbce04d39c0030c565c1
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,441
25
pytest.raises
test_ssl_dont_load_default_certs_when_given
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
Exception)
modified
e182d6ec665c40fd0a7c50df8663204e6b34bed75d7241746492ab2bf2455fae
pytest.raises|test_ssl_dont_load_default_certs_when_given|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collect...
Exception)
1,441
25
urllib3/urllib3
train
562
791c385b7e9fcdfa2014bbce04d39c0030c565c1
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,597
12
assert
test_request_headers_are_sent_in_the_original_order
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
filter_non_x_headers(self.parsed_headers)
modified
d039cc4258621905eb4c6d3a3d97c5779ac949e7e857c3ac9dacd6c20d416bd9
assert|test_request_headers_are_sent_in_the_original_order|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collec...
filter_non_x_headers(self.parsed_headers)
1,597
12
urllib3/urllib3
train
562
791c385b7e9fcdfa2014bbce04d39c0030c565c1
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,905
12
assert
test_ignore_broken_pipe_errors
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
"10"
modified
31f40db60b4142dc45fbad4f079a216a4b6eaa1cab6ab5d166bed8f68e9b0f14
assert|test_ignore_broken_pipe_errors|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedD...
"10"
1,905
12
urllib3/urllib3
train
563
f9c7434090ce96ca93180137356531a9cfcce822
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
164
12
assert_*
test_match_hostname_ip_address_ipv6_doesnt_match
import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPError, ProxyError from urllib3...
{"subjectAltName": (("IP Address", "1:2::2:1"),)})
added
62a9b2ea2b8b29d65d24d517311ebe203dbad0a042ff7995296a4b1d30a9bfbb
assert_*|test_match_hostname_ip_address_ipv6_doesnt_match|import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import...
null
null
null
urllib3/urllib3
train
563
f9c7434090ce96ca93180137356531a9cfcce822
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
181
8
assert
test_match_hostname_dns_with_brackets_doesnt_match
import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPError, ProxyError from urllib3...
str(e.value)
added
c9d4618dc6d345d9045d11f6bf88fc88939264129b9ab854b0b03899ff4d0d3d
assert|test_match_hostname_dns_with_brackets_doesnt_match|import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import...
null
null
null
urllib3/urllib3
train
563
f9c7434090ce96ca93180137356531a9cfcce822
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
204
8
assert
test_HTTPSConnection_default_socket_options
import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPError, ProxyError from urllib3...
[(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)]
added
0efce5e916307807a924222ac311491d143cd48478d82660b993eafa7bb7ec6d
assert|test_HTTPSConnection_default_socket_options|import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPEr...
null
null
null
urllib3/urllib3
train
563
f9c7434090ce96ca93180137356531a9cfcce822
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
218
8
assert
test_wrap_proxy_error
import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPError, ProxyError from urllib3...
True
added
5266cd7011d5d30643bc1f8ca70b8e68fcda21597018e559272268730c93955a
assert|test_wrap_proxy_error|import datetime import socket import typing from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPSConnection, _match_hostname, _wrap_proxy_error, ) from urllib3.exceptions import HTTPError, ProxyError from u...
null
null
null
urllib3/urllib3
train
563
f9c7434090ce96ca93180137356531a9cfcce822
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
470
8
assert
test_e2e_connect_to_ipv6_scoped_tls
import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import ClosedPoolError, LocationVal...
"a::b"
added
36e1151b8c4a81aa2f2748f0e3d9afc2830dc22e1f781b6837e48d0d8bbaff36
assert|test_e2e_connect_to_ipv6_scoped_tls|import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.excep...
null
null
null
urllib3/urllib3
train
564
06b97c50d72869a3d955e13f3032a93589ae1675
train
noxfile.py
test
urllib3/urllib3:noxfile.py
71
4
assert
import os import shutil import subprocess import nox SOURCE_FILES = [ "docs/", "dummyserver/", "src/", "test/", "noxfile.py", "setup.py", ] def tests_impl( session: nox.Session, extras: str = "socks,secure,brotli,zstd", byte_string_comparisons: bool = True, ) -> None: # Insta...
process.stderr
modified
727d45be0c2fe780277954445ee4468e6de87e469de093bb06ba0637608e054d
assert||import os import shutil import subprocess import nox SOURCE_FILES = [ "docs/", "dummyserver/", "src/", "test/", "noxfile.py", "setup.py", ] def tests_impl( session: nox.Session, extras: str = "socks,secure,brotli,zstd", byte_string_comparisons: bool = True, ) -> None: # Install deps and the package itself. sess...
process.stderr
71
4
urllib3/urllib3
train
564
06b97c50d72869a3d955e13f3032a93589ae1675
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
397
13
pytest.raises
test_io_bufferedreader
import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli, onlyZstd from typing import Any, Generator, List, Optional...
ValueError, match="readline of closed file")
added
cfc2fc79bc6d2d8227370568df6ed09950ffd0f523cbfc0c8590b52a84eb68d1
pytest.raises|test_io_bufferedreader|import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli, onlyZstd from typing ...
null
null
null
urllib3/urllib3
train
564
06b97c50d72869a3d955e13f3032a93589ae1675
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
493
13
pytest.raises
test_streaming_tell
import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli, onlyZstd from typing import Any, Generator, List, Optional...
StopIteration)
added
4b8d2ab2dc1476beb92c6697d0348f272225bb9d3c85af9ce29d7f6cbc6cda06
pytest.raises|test_streaming_tell|import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli, onlyZstd from typing imp...
null
null
null
urllib3/urllib3
train
564
06b97c50d72869a3d955e13f3032a93589ae1675
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
753
8
assert
test_mock_gzipped_transfer_encoding_chunked_decoded
import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli, onlyZstd from typing import Any, Generator, List, Optional...
data
added
64846e6410455ef16ea9b34cd3bde081480146f2c47fad8e36ba6a83040476e8
assert|test_mock_gzipped_transfer_encoding_chunked_decoded|import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli,...
null
null
null
urllib3/urllib3
train
564
06b97c50d72869a3d955e13f3032a93589ae1675
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
922
8
assert
test_url
import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli, onlyZstd from typing import Any, Generator, List, Optional...
"https://anotherurl.com"
added
1931cbee7dd6cf3c2bb8fa844e91303be865e10215540d76a8ac18255d1285f0
assert|test_url|import contextlib import http.client as httplib import socket import ssl import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotli, onlyZstd from typing import Any, Generator...
null
null
null
urllib3/urllib3
train
564
06b97c50d72869a3d955e13f3032a93589ae1675
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
318
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, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock impor...
expected_url
modified
a8e553d47d792c512d09aa182953d05e4c8836d606a9cc13ed0cc0714a9fe35e
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, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock fr...
expected_url
318
8
urllib3/urllib3
train
564
06b97c50d72869a3d955e13f3032a93589ae1675
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
655
13
pytest.raises
test_invalid_timeouts
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock impor...
ValueError, match=message)
added
c339880e8ef6c53dbd51286e573f633ae3061742a11574562ad360cf2ea625b6
pytest.raises|test_invalid_timeouts|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest ...
null
null
null
urllib3/urllib3
train
564
06b97c50d72869a3d955e13f3032a93589ae1675
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
711
8
assert
test_timeout_str
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock impor...
"Timeout(connect=1, read=2, total=3)"
added
9e2a411f53e334e33d6084c66abd4024d2e7d41252d83381590ffe1cc85ad367
assert|test_timeout_str|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock ...
null
null
null
urllib3/urllib3
train
565
7636345843bb66be17c2de8065b4235d37d05eb2
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
381
17
pytest.raises
test_no_ssl
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
ImportError)
modified
6f523cf7af49664b25c5765f4038856403dd32becdcd2b183e9342852cc3e22c
pytest.raises|test_no_ssl|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalhost...
MaxRetryError)
381
17
urllib3/urllib3
train
565
7636345843bb66be17c2de8065b4235d37d05eb2
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
395
16
assert
test_unverified_ssl
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
warn.called
modified
89d1931e7ca60547373df04a26b728ebff556422191e9de17eb0abfe468d6c2d
assert|test_unverified_ssl|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalhos...
warn.called
396
16
urllib3/urllib3
train
565
7636345843bb66be17c2de8065b4235d37d05eb2
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
508
17
pytest.raises
_test_request
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
MaxRetryError)
modified
990abe74b897fd5264ce485d69275f17452a9bbe8a2a950f4df9ded5299824c5
pytest.raises|_test_request|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
MaxRetryError)
509
17
urllib3/urllib3
train
565
7636345843bb66be17c2de8065b4235d37d05eb2
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
669
17
pytest.raises
test_enhanced_timeout
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
ConnectTimeoutError)
modified
b09278197684b5ea61ea3c1d6b62a22d2a5e1b1c688b56cc6b83273fe9e833c4
pytest.raises|test_enhanced_timeout|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolve...
ConnectTimeoutError)
670
17
urllib3/urllib3
train
566
68d17f4f12dc69afc5b8a8d8924aaf7773a1f9e5
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
233
8
assert
test_add_well_known_multiheader
from typing import Iterator, List, Tuple, Union import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer: def test_maxsize(self) -> None: d: Container[int, str] = Container(5) for i in range(5): ...
["foo", "bar", "asdf"]
added
2e923d535338a22922f389c1f0fa6a66fb295302800d986c15792379dfbcef4b
assert|test_add_well_known_multiheader|from typing import Iterator, List, Tuple, Union import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer: def test_maxsize(self) -> None: d: Container[int, str] = Container(5) for i in ...
null
null
null
urllib3/urllib3
train
566
68d17f4f12dc69afc5b8a8d8924aaf7773a1f9e5
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
317
8
assert
test_getlist
from typing import Iterator, List, Tuple, Union import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer: def test_maxsize(self) -> None: d: Container[int, str] = Container(5) for i in range(5): ...
["asdf"]
added
2a8931cc100138841a600b6f535e4a67704ad67c4db18de0a489822781a61e30
assert|test_getlist|from typing import Iterator, List, Tuple, Union import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer: def test_maxsize(self) -> None: d: Container[int, str] = Container(5) for i in range(5): d[i] = st...
null
null
null
urllib3/urllib3
train
566
68d17f4f12dc69afc5b8a8d8924aaf7773a1f9e5
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
349
8
assert
test_pop
from typing import Iterator, List, Tuple, Union import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer: def test_maxsize(self) -> None: d: Container[int, str] = Container(5) for i in range(5): ...
d.pop(key, dummy)
added
1861fe0ac3e2f3414839b864de95fd3aab19947aaa5681bf60861e3f91a0f8f2
assert|test_pop|from typing import Iterator, List, Tuple, Union import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer: def test_maxsize(self) -> None: d: Container[int, str] = Container(5) for i in range(5): d[i] = str(i)...
null
null
null
urllib3/urllib3
train
566
68d17f4f12dc69afc5b8a8d8924aaf7773a1f9e5
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
480
8
assert
test_top_level_request_with_preload_content
import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTTPResponse, request from urllib3.connectionpool import port_by_scheme fr...
None
added
dc35725b833838e7a0402bbf49973b0cb40a980eb651c8f29197bb25c298af80
assert|test_top_level_request_with_preload_content|import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTTPResponse, request fro...
null
null
null
urllib3/urllib3
train
566
68d17f4f12dc69afc5b8a8d8924aaf7773a1f9e5
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
521
8
assert
test_top_level_request_with_redirect
import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTTPResponse, request from urllib3.connectionpool import port_by_scheme fr...
b"Dummy server!"
added
5fd26ee4a4381cb0741bf0957f85006c45a07fc7fc7ba3d9fc452ba6eec1fd3b
assert|test_top_level_request_with_redirect|import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTTPResponse, request from urlli...
null
null
null
urllib3/urllib3
train
566
68d17f4f12dc69afc5b8a8d8924aaf7773a1f9e5
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,871
16
assert
test_enforce_content_length_get
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
False
added
11ea95df662d450875c163c7fe94ad39b3f7ee3fb9d314a19da5d0dfc769211b
assert|test_enforce_content_length_get|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import Ordered...
null
null
null
urllib3/urllib3
train
566
68d17f4f12dc69afc5b8a8d8924aaf7773a1f9e5
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
2,048
8
assert
test_content_length_0_by_default
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
sent_bytes.lower()
added
d1e239fb0ed49e3f598a9d8d51ecbae4118cb7f22de25f4bc76f35947dc1ff7a
assert|test_content_length_0_by_default|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import Ordere...
null
null
null
urllib3/urllib3
train
566
68d17f4f12dc69afc5b8a8d8924aaf7773a1f9e5
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
2,243
12
assert
test_framing_set_via_headers
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDict from pathlib import Path from test...
sent_bytes.endswith(expected)
added
63805c095574ef7582c78caea371806ac2ab7553507a877b66dbbb8434b7cc31
assert|test_framing_set_via_headers|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import tempfile import time from collections import OrderedDic...
null
null
null
urllib3/urllib3
train
567
4512852c7f7cbfb33bf69d23396563a5cf201770
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
354
8
assert
test_load_keyfile_with_invalid_password
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from collections import OrderedDict from pathlib import Pat...
None
modified
6ca7ba50e174bd5a67a39285e52680215f4f791749895ec1b2f6054cce8c0300
assert|test_load_keyfile_with_invalid_password|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from collect...
None
353
8
urllib3/urllib3
train
567
4512852c7f7cbfb33bf69d23396563a5cf201770
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,398
21
pytest.raises
test_ssl_load_default_certs_when_empty
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from collections import OrderedDict from pathlib import Pat...
Exception)
modified
34f4ac1b8509fdb12322a3ca5575dece78a861d50d0059b70564a9cf52e38578
pytest.raises|test_ssl_load_default_certs_when_empty|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from c...
Exception)
1,397
21
urllib3/urllib3
train
567
4512852c7f7cbfb33bf69d23396563a5cf201770
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,450
13
pytest.raises
test_load_verify_locations_exception
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from collections import OrderedDict from pathlib import Pat...
SSLError)
modified
f1b7e229e4b1537d0ca913d53536df8abe3b4830b46d80076edeb96d95edd928
pytest.raises|test_load_verify_locations_exception|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from col...
SSLError)
1,449
13
urllib3/urllib3
train
567
4512852c7f7cbfb33bf69d23396563a5cf201770
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,771
12
assert
test_headers_sent_with_add
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from collections import OrderedDict from pathlib import Pat...
buffer
added
52318a914683c6f62e5f5a8ff6fe6ef60b3da1392052f920ad015a3e389e8749
assert|test_headers_sent_with_add|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from collections import O...
null
null
null
urllib3/urllib3
train
568
a80c248c34a77e106551bf997e726457b03f42b5
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
306
8
assert
test_custom_pool_key
import gc import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationValueError...
pool3
added
5f95cd36700dc38bfcb7c44c46af3d17ae3f13d648c9c9ef2bb16632974f78db
assert|test_custom_pool_key|import gc import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions...
null
null
null
urllib3/urllib3
train
568
a80c248c34a77e106551bf997e726457b03f42b5
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
339
8
assert
test_override_pool_kwargs_host
import gc import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationValueError...
override_pool.block
added
0b0eb92d850879d9be63c095f477ff421fadae919aca779e886a2b2315baf665
assert|test_override_pool_kwargs_host|import gc import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3....
null
null
null
urllib3/urllib3
train
568
a80c248c34a77e106551bf997e726457b03f42b5
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
370
8
assert
test_merge_pool_kwargs_none
import gc import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationValueError...
merged
added
a80c3f32f035e545a035b3a180ef63b66eb0454d6e13f2598a2cac4651ff185b
assert|test_merge_pool_kwargs_none|import gc import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exc...
null
null
null
urllib3/urllib3
train
568
a80c248c34a77e106551bf997e726457b03f42b5
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
448
8
assert
test_e2e_connect_to_ipv6_scoped_tls
import gc import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationValueError...
"a::b"
added
ad5e7f9c36111ba554fffc4fdce3e1fba1e79c8a360250cfa9a3f17d7a3eaa97
assert|test_e2e_connect_to_ipv6_scoped_tls|import gc import socket from test import resolvesLocalhostFQDN from typing import Optional from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from url...
null
null
null
urllib3/urllib3
train
569
bfccaee4b3c477f4079fa3cabb2b089a9a7c44f8
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
878
13
pytest.raises
test_dnsresolver_forced_error
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock impor...
socket.gaierror)
added
8b8fc90af0e640d287b4a7724dc1a88db506afebb41a2b99ab8f08650f6be220
pytest.raises|test_dnsresolver_forced_error|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from u...
null
null
null
urllib3/urllib3
train
569
bfccaee4b3c477f4079fa3cabb2b089a9a7c44f8
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
883
13
pytest.raises
test_dnsresolver_expected_error
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock impor...
socket.gaierror)
added
fb7cbf39980bf5aa76ad618248ba9fb1dbc88ee0a7604f1059e722b20cc50677
pytest.raises|test_dnsresolver_expected_error|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from...
null
null
null
urllib3/urllib3
train
569
bfccaee4b3c477f4079fa3cabb2b089a9a7c44f8
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
944
8
assert
test_to_bytes
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock impor...
expected
added
5fe2fdb2a2262fac07bfbd931a91e918921d155341251086c87cb16948fb7c2a
assert|test_to_bytes|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock fro...
null
null
null
urllib3/urllib3
train
569
bfccaee4b3c477f4079fa3cabb2b089a9a7c44f8
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
1,124
13
pytest.raises
test_parse_url_without_idna
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock impor...
LocationParseError, match=f"Failed to parse: {url}")
added
c708caa0b2ded0d9e0946ce935f090de721d0f0ea3bb07bb7620df8b96e0dd48
pytest.raises|test_parse_url_without_idna|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from uni...
null
null
null
urllib3/urllib3
train
569
bfccaee4b3c477f4079fa3cabb2b089a9a7c44f8
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
271
12
assert
test_cross_protocol_redirect
import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urll...
isinstance(r, HTTPResponse)
modified
835fb6d4f8acd43186cf9258531c2e7b98084cd6366db3f4046f29ba054b718d
assert|test_cross_protocol_redirect|import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import...
None
268
12
urllib3/urllib3
train
569
bfccaee4b3c477f4079fa3cabb2b089a9a7c44f8
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
412
12
assert
test_headerdict
import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urll...
"bar"
modified
87ba7555761e78964b229d54f5429c80b7e4cd5f18b741aee6629283197c6b59
assert|test_headerdict|import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest impor...
"quux"
409
12
urllib3/urllib3
train
569
bfccaee4b3c477f4079fa3cabb2b089a9a7c44f8
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
710
17
pytest.raises
test_https_proxy_assert_fingerprint_md5_non_matching
import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urll...
MaxRetryError)
added
7c5d21bbab4d9535b4c241389b62216ddbbc7547dabf45dbcf1134d3e65e3fa6
pytest.raises|test_https_proxy_assert_fingerprint_md5_non_matching|import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig ...
null
null
null
urllib3/urllib3
train
569
bfccaee4b3c477f4079fa3cabb2b089a9a7c44f8
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
769
12
assert
test_https_proxy_hostname_verification
import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tuple import pytest import trustme import urll...
isinstance(ssl_error, SSLError)
added
39abcd07c621f30c5b09b8ffc9f113267f6d920eab98645c7db44e12bd749d9c
assert|test_https_proxy_hostname_verification|import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig from typing import Tu...
null
null
null
urllib3/urllib3
train
570
e5eac0cbfb6920fcc0b6dd584f23eeb14277ab3f
train
test/test_ssl.py
train
urllib3/urllib3:test/test_ssl.py
62
17
pytest.raises
test_create_urllib3_no_context
import ssl from typing import Any, Dict, Optional, Union from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::"...
TypeError)
added
51aced19c0f5c70089ff5392ad75c096c8eb26bdb35c4b13333e8187d59700cb
pytest.raises|test_create_urllib3_no_context|import ssl from typing import Any, Dict, Optional, Union from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7...
null
null
null
urllib3/urllib3
train
570
e5eac0cbfb6920fcc0b6dd584f23eeb14277ab3f
train
test/test_ssl.py
train
urllib3/urllib3:test/test_ssl.py
105
17
pytest.raises
test_wrap_socket_no_ssltransport
import ssl from typing import Any, Dict, Optional, Union from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::"...
ProxySchemeUnsupported)
added
f77e6042926bb89bad3302392655c8ec28eea38915572186accbbb94f977ac71
pytest.raises|test_wrap_socket_no_ssltransport|import ssl from typing import Any, Dict, Optional, Union from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939...
null
null
null
urllib3/urllib3
train
570
e5eac0cbfb6920fcc0b6dd584f23eeb14277ab3f
train
test/test_ssl.py
train
urllib3/urllib3:test/test_ssl.py
161
13
pytest.raises
test_create_urllib3_context_ssl_version_and_ssl_min_max_version_errors
import ssl from typing import Any, Dict, Optional, Union from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::"...
ValueError)
added
91588d50d9407d02faf157c5ba2b1bf70b12ee98bf5150a196ebc2315ff6b1be
pytest.raises|test_create_urllib3_context_ssl_version_and_ssl_min_max_version_errors|import ssl from typing import Any, Dict, Optional, Union from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "ad...
null
null
null
urllib3/urllib3
train
570
e5eac0cbfb6920fcc0b6dd584f23eeb14277ab3f
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
583
8
assert
test_rewind_body
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock impor...
b"data"
modified
8f82cbf2c4b6332c0f5e40dc1ff2d1f555cf68bcd08c20a89b9ec39140132e2c
assert|test_rewind_body|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock ...
b"data"
584
8
urllib3/urllib3
train
570
e5eac0cbfb6920fcc0b6dd584f23eeb14277ab3f
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
877
13
pytest.raises
test_dnsresolver_forced_error
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock impor...
socket.gaierror)
modified
a2338ad03a8d341f6931f177468e728b609ce0dbb3cf1f64c1736758d6750b07
pytest.raises|test_dnsresolver_forced_error|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from u...
socket.gaierror)
878
13
urllib3/urllib3
train
570
e5eac0cbfb6920fcc0b6dd584f23eeb14277ab3f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
497
17
pytest.raises
test_https_connection_read_timeout
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from collections import OrderedDict from pathlib import Pat...
ReadTimeoutError)
modified
e14e41ff24e37bfa711e12371b52965a4fdbb5248eb7e25fcc48b50b87975282
pytest.raises|test_https_connection_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from colle...
ReadTimeoutError)
499
17
urllib3/urllib3
train
570
e5eac0cbfb6920fcc0b6dd584f23eeb14277ab3f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,620
12
assert
test_headers_are_sent_with_the_original_case
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from collections import OrderedDict from pathlib import Pat...
self.parsed_headers
modified
4b758d9c66e27e387e65a6ea085eb380673c935262e4070a5235a0bb59555e8b
assert|test_headers_are_sent_with_the_original_case|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from co...
self.parsed_headers
1,622
12
urllib3/urllib3
train
570
e5eac0cbfb6920fcc0b6dd584f23eeb14277ab3f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,700
12
assert
test_response_headers_are_returned_in_the_original_order
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import time from collections import OrderedDict from pathlib import Pat...
actual_response_headers
modified
f998449a6d935e466c5373936641fffd5680b679a0336394f0d0b85db0e02b81
assert|test_response_headers_are_returned_in_the_original_order|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile import ...
actual_response_headers
1,702
12
urllib3/urllib3
train
571
a0112a70c5c16d8719cd362ab876bd18a8fe2227
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
527
12
assert
test_assert_invalid_fingerprint
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
f'Fingerprints did not match. Expected "{expected}", got "{got}"'
modified
352245c1f444e7ffec07434908586d1f4eb119584372d17e05b7378bd2b6a961
assert|test_assert_invalid_fingerprint|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, reso...
f'Fingerprints did not match. Expected "{expected}", got "{got}"'
527
12
urllib3/urllib3
train
571
a0112a70c5c16d8719cd362ab876bd18a8fe2227
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
596
17
pytest.raises
test_https_timeout
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
ConnectTimeoutError)
modified
76c7b95f26534de63f335014e2901c42ddf7dfa041f4ed382f0fcc97107e83d7
pytest.raises|test_https_timeout|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLo...
ConnectTimeoutError)
596
17
urllib3/urllib3
train
571
a0112a70c5c16d8719cd362ab876bd18a8fe2227
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
803
8
assert
test_ssl_version_is_deprecated
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
any(x.category == DeprecationWarning for x in w)
modified
a26b185aae10c88204dc0ff51772c1ee1087bd2e3261db53ac6d3e8e155fe179
assert|test_ssl_version_is_deprecated|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resol...
any(x.category == DeprecationWarning for x in w)
803
8
urllib3/urllib3
train
571
a0112a70c5c16d8719cd362ab876bd18a8fe2227
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
948
8
assert
test_default_ssl_context_ssl_min_max_versions
import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password, resolvesLocalho...
ssl.TLSVersion.TLSv1_2
modified
f462046c7d4881ab4c10c82ec91c1439c2997d6724f155269566965891352b4b
assert|test_default_ssl_context_ssl_min_max_versions|import datetime import logging import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_...
ssl.TLSVersion.TLSv1_2
948
8
urllib3/urllib3
train
572
0606cdfb7939bbc9cb46c8bc3964dc8c201fc602
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
597
12
assert
test_partial_response
import io import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from typing import Dict, List, NoReturn, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.serve...
resp_data[:5]
modified
53e2523ac8b9c973bc3babf2e7aab656a0d3c22c35c0df24641912f61fa1c8bf
assert|test_partial_response|import io import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from typing import Dict, List, NoReturn, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import py...
resp_data[:5]
598
12
urllib3/urllib3
train
572
0606cdfb7939bbc9cb46c8bc3964dc8c201fc602
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
841
12
assert
test_default_user_agent_header
import io import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from typing import Dict, List, NoReturn, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.serve...
custom_ua
modified
209d7bbf6232946a6d8891f23553e83d2e15f91d863512421576961b84ef2e15
assert|test_default_user_agent_header|import io import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from typing import Dict, List, NoReturn, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode ...
custom_ua
842
12
urllib3/urllib3
train
572
0606cdfb7939bbc9cb46c8bc3964dc8c201fc602
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
948
12
assert
test_skip_header
import io import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from typing import Dict, List, NoReturn, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.serve...
request_headers
modified
0e0e01ad1cf52e63cdb80d4ab14ad09ecca2fd6066d64035f5d980bf17e4d817
assert|test_skip_header|import io import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from typing import Dict, List, NoReturn, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest ...
request_headers
949
12
urllib3/urllib3
train
572
0606cdfb7939bbc9cb46c8bc3964dc8c201fc602
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
1,184
12
assert
test_multi_redirect_history
import io import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from typing import Dict, List, NoReturn, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.serve...
b"Done redirecting"
modified
0cf2a0e47f31ebc30c2e55fbf122c41b309f16067faee7efdca01832d609e79f
assert|test_multi_redirect_history|import io import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from typing import Dict, List, NoReturn, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode imp...
b"Done redirecting"
1,185
12
urllib3/urllib3
train
573
279b9c965396d3347b20918fe3e7e500f5634611
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
78
12
assert
test_match_hostname_no_dns
import datetime import socket import typing from http.client import ResponseNotReady from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPConnection, HTTPSConnection, _match_hostname, _url_from_connection, ...
cert
modified
e4316df9422858b455702932db5c5886b1373526d3bcfaeec759393a998ae7de
assert|test_match_hostname_no_dns|import datetime import socket import typing from http.client import ResponseNotReady from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPConnection, HTTPSConnection, _match_hostname, _url_from_connecti...
cert
75
12
urllib3/urllib3
train
573
279b9c965396d3347b20918fe3e7e500f5634611
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
112
13
pytest.raises
test_match_hostname_ignore_common_name
import datetime import socket import typing from http.client import ResponseNotReady from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPConnection, HTTPSConnection, _match_hostname, _url_from_connection, ...
ImplementationCertificateError, match="no appropriate subjectAltName fields were found")
modified
0db71393c57dd968928542e0f92ad9acec9a75cef922626de1b21e41dad35b58
pytest.raises|test_match_hostname_ignore_common_name|import datetime import socket import typing from http.client import ResponseNotReady from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPConnection, HTTPSConnection, _match_hostname,...
ImplementationCertificateError, match="no appropriate subjectAltName fields were found")
109
13