repo_id
stringclasses
400 values
cross_repo_split
stringclasses
1 value
commit_index
int32
0
1.19k
commit_sha
stringlengths
40
40
in_repo_split
stringclasses
3 values
test_file
stringlengths
7
121
file_split
stringclasses
3 values
split_group
stringlengths
18
150
lineno
int32
1
5.24k
col_offset
int32
0
165
assertion_type
stringclasses
35 values
test_function
stringlengths
0
141
prefix
large_stringlengths
7
258k
target
stringlengths
1
29.2k
assertion_event_type
stringclasses
2 values
assertion_event_id
stringlengths
64
64
assertion_anchor
large_stringlengths
14
176k
old_target
stringlengths
1
11.2k
old_lineno
int32
2
4.91k
old_col_offset
int32
0
165
urllib3/urllib3
train
535
74abd449be7925dfb5d19b74d609df70d3af6fc1
train
dummyserver/testcase.py
train
urllib3/urllib3:dummyserver/testcase.py
125
8
assert
import socket import ssl import threading from contextlib import contextmanager from typing import Any, Callable, ClassVar, Dict, Generator, Iterable, Optional, Union import pytest from tornado import httpserver, ioloop, web from dummyserver.handlers import TestingApp from dummyserver.proxy import ProxyHandler from d...
header_titles
added
8994d912819e4fbe093ea6ec20245a44e07ba83260a59866848d4abf5913e4ec
assert||import socket import ssl import threading from contextlib import contextmanager from typing import Any, Callable, ClassVar, Dict, Generator, Iterable, Optional, Union import pytest from tornado import httpserver, ioloop, web from dummyserver.handlers import TestingApp from dummyserver.proxy import ProxyHandler ...
null
null
null
urllib3/urllib3
train
535
74abd449be7925dfb5d19b74d609df70d3af6fc1
train
test/test_ssltransport.py
train
urllib3/urllib3:test/test_ssltransport.py
393
16
assert
test_tls_in_tls_tunnel
import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.u...
None
added
66cf4a91713dc5194682a34af9b8728fa43c85b762d7e83ae269c4114e84f620
assert|test_tls_in_tls_tunnel|import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, c...
null
null
null
urllib3/urllib3
train
535
74abd449be7925dfb5d19b74d609df70d3af6fc1
train
test/test_ssltransport.py
train
urllib3/urllib3:test/test_ssltransport.py
412
17
pytest.raises
test_wrong_sni_hint
import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.u...
ssl.SSLCertVerificationError)
added
214d287e9e74905652538b249d8386af142b3c2c0323e94275bf7b205249b54c
pytest.raises|test_wrong_sni_hint|import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCas...
null
null
null
urllib3/urllib3
train
535
74abd449be7925dfb5d19b74d609df70d3af6fc1
train
test/test_ssltransport.py
train
urllib3/urllib3:test/test_ssltransport.py
442
16
assert
test_tls_in_tls_makefile_raw_rw_binary
import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.u...
None
added
cfe0c368fa87f6418ea6ef33c2e6a0aeae22ddb0bf8032745b704d1304d2bed8
assert|test_tls_in_tls_makefile_raw_rw_binary|import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyS...
null
null
null
urllib3/urllib3
train
535
74abd449be7925dfb5d19b74d609df70d3af6fc1
train
test/test_ssltransport.py
train
urllib3/urllib3:test/test_ssltransport.py
551
13
pytest.raises
test_makefile_wrong_mode_error
import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.u...
ValueError)
added
dcf8f5bd599224ac7170a7643f211f1fe8a912606aa8a5e3e53b5fd067317a4f
pytest.raises|test_makefile_wrong_mode_error|import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummySe...
null
null
null
urllib3/urllib3
train
536
093ab6cc26b31fd1a36856e7130770d11f146e0e
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
70
8
assert
test_cache_content
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 from typing import Any, Generator, List, Optional from unit...
b"foo"
modified
15a1f04a6659be94afde79ad8cab8615d49ee49cc9ebeace4f04c946423859ab
assert|test_cache_content|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 from typing import Any, Generator...
"foo"
69
8
urllib3/urllib3
train
536
093ab6cc26b31fd1a36856e7130770d11f146e0e
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
125
8
assert
test_decode_deflate_case_insensitve
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 from typing import Any, Generator, List, Optional from unit...
b"foo"
modified
2375820bf7c67a980cc22b627643e77449c2afe78693dca67f1c52e57ffd998c
assert|test_decode_deflate_case_insensitve|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 from typing impo...
b"foo"
124
8
urllib3/urllib3
train
536
093ab6cc26b31fd1a36856e7130770d11f146e0e
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
161
8
assert
test_chunked_decoding_deflate2
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 from typing import Any, Generator, List, Optional from unit...
b"oo"
modified
6502b85007a33b92d8f2927fd296d71987bc97a83664adb209c5da7db519f3a4
assert|test_chunked_decoding_deflate2|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 from typing import An...
b"oo"
158
8
urllib3/urllib3
train
536
093ab6cc26b31fd1a36856e7130770d11f146e0e
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
235
8
assert
test_decode_brotli
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 from typing import Any, Generator, List, Optional from unit...
b"foo"
modified
ed3f1c5038c75e6382285a2cc5ad3a156de3d57a84dbe0a3a80f11c32298aba6
assert|test_decode_brotli|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 from typing import Any, Generator...
b"foo"
232
8
urllib3/urllib3
train
537
40857c7d66918e4c50ae3300826985c1b2dbe162
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
134
12
assert
test_same_host_no_port_http
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
c.is_same_host(b)
modified
67698b275a9d73c59644d660c8e0a4f272271e01933ee47cd0b11563d5417178
assert|test_same_host_no_port_http|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock,...
c.is_same_host(b)
134
12
urllib3/urllib3
train
537
40857c7d66918e4c50ae3300826985c1b2dbe162
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
151
12
assert
test_same_host_no_port_https
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
c.is_same_host(b)
modified
c528a53681057652aa925ffdee8129ac693a7c9f7ab02f5c025ba84fc2ad5c66
assert|test_same_host_no_port_https|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock...
c.is_same_host(b)
151
12
urllib3/urllib3
train
537
40857c7d66918e4c50ae3300826985c1b2dbe162
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
413
12
assert
test_pool_timeouts
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
Timeout.DEFAULT_TIMEOUT
modified
d6c866d6ec92490ae7ab567fb4ac5968ee08275205e7edfd74568f03bc21fd9e
assert|test_pool_timeouts|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch im...
SHORT_TIMEOUT
410
12
urllib3/urllib3
train
537
40857c7d66918e4c50ae3300826985c1b2dbe162
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
474
16
assert
test_cleanup_on_extreme_connection_error
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
None
modified
9eddc61e97f5dee792dd85b32ea11c1c76cf4f92396e2f7ab3b86199095892fd
assert|test_cleanup_on_extreme_connection_error|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock...
new_pool_size
476
12
urllib3/urllib3
train
538
16b43d54792ca62473143603385f1bfb534daf4f
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
472
12
assert
test_keepalive_close
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, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import H...
None
added
3f6628a59961808047b7399a50e59c771d68851e17fd9cdef7022a8b12ac3f6c
assert|test_keepalive_close|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, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest from d...
null
null
null
urllib3/urllib3
train
538
16b43d54792ca62473143603385f1bfb534daf4f
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
494
12
assert
test_post_with_urlencode
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, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import H...
urlencode(data)
added
65ede52e3ab52fd997ba4d3bd3db9fffc1647e8cdc2f994181378f9d140b3875
assert|test_post_with_urlencode|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, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest fr...
null
null
null
urllib3/urllib3
train
538
16b43d54792ca62473143603385f1bfb534daf4f
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
734
21
pytest.raises
test_source_address_error
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, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import H...
NameResolutionError)
modified
cc4836bbf5b7535e3927ec5e873a0abbe0a16d7ab7755c1a54f7e70c497e7f4b
pytest.raises|test_source_address_error|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, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import p...
NewConnectionError)
733
21
urllib3/urllib3
train
538
16b43d54792ca62473143603385f1bfb534daf4f
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
969
12
assert
test_skip_header_non_supported
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, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import H...
all( ("'" + header.title() + "'") in str(e.value) for header in SKIPPABLE_HEADERS )
added
47f9559f97c6224362055dcebb35061c5d3484453b8b99364cee0f68dc5bc2f1
assert|test_skip_header_non_supported|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, Optional, Tuple, Type, Union from unittest import mock from urllib.parse import urlencode import pyt...
null
null
null
urllib3/urllib3
train
538
16b43d54792ca62473143603385f1bfb534daf4f
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
638
21
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
210a6114d25c823da41d7a4727c11734a60c60594bcf735c3aed3c468b43fca9
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)
636
21
urllib3/urllib3
train
538
16b43d54792ca62473143603385f1bfb534daf4f
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
786
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
0e71695d4a13a412f494d7b1ee80519f304613cafa8090c5f42c8f46c3d569ed
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)
784
8
urllib3/urllib3
train
538
16b43d54792ca62473143603385f1bfb534daf4f
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
931
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
2690ddbc4f1c5ed838bbf457267b5c5f8d09deb480bed2c7cf1cad3dffa23596
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
929
8
urllib3/urllib3
train
538
16b43d54792ca62473143603385f1bfb534daf4f
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
987
12
assert
test_common_name_without_san_fails
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" in str( e.value ) or "no appropriate subjectAltName" in str(e.value)
modified
d74f17c01d1057174771f0f337bc0c588e4703d7d42d2c685f964a99c7263e0f
assert|test_common_name_without_san_fails|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, r...
"mismatch, certificate is not valid" in str( e.value ) or "no appropriate subjectAltName" in str(e.value)
985
12
urllib3/urllib3
train
539
40b3228495ad9848fae56928ad75a90cebeebc6e
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
117
12
assert
test_not_same_host
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
not c.is_same_host(a)
modified
2d844b52823e1f03ab86457b75d319145710b542f939fdc4ac5270b79d28ff9d
assert|test_not_same_host|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch im...
not c.is_same_host(a)
117
12
urllib3/urllib3
train
539
40b3228495ad9848fae56928ad75a90cebeebc6e
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
151
12
assert
test_same_host_no_port_https
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
c.is_same_host(b)
modified
2bdc0c489fdffdf725dfce37be200d6b472e22d6c72faef2655ac7c9df733a86
assert|test_same_host_no_port_https|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock...
c.is_same_host(b)
151
12
urllib3/urllib3
train
539
40b3228495ad9848fae56928ad75a90cebeebc6e
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
201
12
assert
test_same_host_custom_protocol
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
c.is_same_host(b)
modified
bc89095b22ccfa0b0290be52e21af522acfabc1b90aae572771fdeb1b8eb01bd
assert|test_same_host_custom_protocol|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mo...
c.is_same_host(b)
201
12
urllib3/urllib3
train
539
40b3228495ad9848fae56928ad75a90cebeebc6e
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
284
12
assert
test_put_conn_closed_pool
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
True
modified
ea086acf967705c39ddb6fe36df83aea21ebfb608fedb9b6cb287434965e14eb
assert|test_put_conn_closed_pool|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, p...
True
284
12
urllib3/urllib3
train
539
40b3228495ad9848fae56928ad75a90cebeebc6e
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
172
13
pytest.raises
test_invalid_url
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch import py...
LocationParseError)
modified
858d2630d200ee9a19c18d46f911ba696556f8352622087aa91a012f8542a198
pytest.raises|test_invalid_url|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, Optional, Tuple, Union from unittest import mock from unittest.mock import Ma...
LocationParseError)
172
13
urllib3/urllib3
train
539
40b3228495ad9848fae56928ad75a90cebeebc6e
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
373
8
assert
test_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, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch import py...
expected_netloc
modified
ef8cbaf845a4c18a306674e58b8d67d4d6d636eaa7e1b700311448dbccc2e87e
assert|test_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, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Moc...
expected_netloc
373
8
urllib3/urllib3
train
539
40b3228495ad9848fae56928ad75a90cebeebc6e
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
645
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, onlyBrotli from typing import TYPE_CHECKING, Dict, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch import py...
"Timeout(connect=1, read=None, total=3)"
added
38411e06b75d04f4e89204cb3bcd215adc5f95a6b178e0d8c2c7f833b31dcfc7
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, onlyBrotli from typing import TYPE_CHECKING, Dict, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock...
null
null
null
urllib3/urllib3
train
539
40b3228495ad9848fae56928ad75a90cebeebc6e
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
691
13
pytest.raises
test_is_fp_closed_object_has_neither_fp_nor_closed
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, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch import py...
ValueError)
added
38dc991ec12b474cf76bb2a6fb4d14a1f6d51bb6d19aff80dc59571a35930def
pytest.raises|test_is_fp_closed_object_has_neither_fp_nor_closed|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, Optional, Tuple, Union from unittest import...
null
null
null
urllib3/urllib3
train
540
1c6405832e5348c740bc3b67b8b171b5da100a26
train
noxfile.py
test
urllib3/urllib3:noxfile.py
76
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", byte_string_comparisons: bool = True, ) -> None: # Install de...
process.stderr
modified
27ae2d91f84aa6a7390c8a48716609290eaf6ed659340b855efa0faa83cdff56
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", byte_string_comparisons: bool = True, ) -> None: # Install deps and the package itself. session.i...
process.stderr
76
4
urllib3/urllib3
train
541
111e609250bc7bf67b080b124298e0cf59efef9d
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
225
12
assert
test_redirect
import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase import HT...
b"Dummy server!"
added
821a2f50054a2c6a5374c818aca9badc0306cf57773ea4bec30a7f4eaa140332
assert|test_redirect|import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver...
null
null
null
urllib3/urllib3
train
541
111e609250bc7bf67b080b124298e0cf59efef9d
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
363
12
assert
test_https_headers
import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase import HT...
f"{self.http_host_alt}:{self.http_port}"
added
0172ec82b2907908ba6c60960b96704c812f45d22a07b488ba2b0230f5b61b7b
assert|test_https_headers|import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummys...
null
null
null
urllib3/urllib3
train
541
111e609250bc7bf67b080b124298e0cf59efef9d
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
540
12
assert
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 import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase import HT...
ProxyError
added
93676a51aea6957f5453490802d9b8e5bc0e77fd34f89735a5b37a168427baaf
assert|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 import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_a...
null
null
null
urllib3/urllib3
train
541
111e609250bc7bf67b080b124298e0cf59efef9d
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
614
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 import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase import HT...
ProxySchemeUnknown, match=error_msg)
added
407f74a5e767adc4f3e8fb4a01a03edc5a4db32427404651a37795d9a3b690bc
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 import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address fro...
null
null
null
urllib3/urllib3
train
541
111e609250bc7bf67b080b124298e0cf59efef9d
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
575
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 os import os.path import select import shutil import socket import ssl import tempfile from collections import OrderedDict from pathlib import Path from test import ( LONG_TIM...
ReadTimeoutError)
modified
bf7f4e6d61bb8d981b14efb5eb0cce38716ac83548952eb63fc5e4f3a4cb3b35
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 os import os.path import select import shutil import socket import ssl import tempfile from collections import OrderedDict from pathli...
ReadTimeoutError)
576
21
urllib3/urllib3
train
541
111e609250bc7bf67b080b124298e0cf59efef9d
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
688
12
assert
test_retry_weird_http_version
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import os import os.path import select import shutil import socket import ssl import tempfile from collections import OrderedDict from pathlib import Path from test import ( LONG_TIM...
b"foo"
modified
dbac2b8ef6a02bf74c0c2d0449252d60b9ab52d1d090c478ae482fa60966dd18
assert|test_retry_weird_http_version|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import os import os.path import select import shutil import socket import ssl import tempfile from collections import OrderedDict from pathlib import...
b"foo"
689
12
urllib3/urllib3
train
541
111e609250bc7bf67b080b124298e0cf59efef9d
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,008
12
assert
test_headers
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import os import os.path import select import shutil import socket import ssl import tempfile from collections import OrderedDict from pathlib import Path from test import ( LONG_TIM...
r.data
modified
58571cc56c23a8e95f34d857f3f777caba9cf87ecd7e5dc66e0349bed2972f93
assert|test_headers|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import errno import os import os.path import select import shutil import socket import ssl import tempfile from collections import OrderedDict from pathlib import Path from test i...
r.data
1,009
12
urllib3/urllib3
train
541
111e609250bc7bf67b080b124298e0cf59efef9d
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,258
21
pytest.raises
test_ssl_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 os import os.path import select import shutil import socket import ssl import tempfile from collections import OrderedDict from pathlib import Path from test import ( LONG_TIM...
ReadTimeoutError)
modified
7dafcc442f32a6e690f9ca88142c5f18c0d5063518b07ded330c046b4d89b202
pytest.raises|test_ssl_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 os import os.path import select import shutil import socket import ssl import tempfile from collections import OrderedDict from pathlib import ...
ReadTimeoutError)
1,259
21
urllib3/urllib3
train
542
73953a07de9008b2650bf9614590e81c169e94cb
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
360
25
pytest.raises
test_empty_does_not_put_conn
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
EmptyPoolError)
added
a93fc2005bd63230c685494cb162bc00682363db2ed0531d4d531712a4600c82
pytest.raises|test_empty_does_not_put_conn|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock impo...
null
null
null
urllib3/urllib3
train
542
73953a07de9008b2650bf9614590e81c169e94cb
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
417
12
assert
test_pool_timeouts
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
_DEFAULT_TIMEOUT
modified
06e4e78835082806d9122bfdedd25970ae4f341b76ef1dbdaa89378ae23d2333
assert|test_pool_timeouts|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch im...
_DEFAULT_TIMEOUT
414
12
urllib3/urllib3
train
542
73953a07de9008b2650bf9614590e81c169e94cb
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
427
13
pytest.raises
test_no_host
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
LocationValueError)
added
5b51de796261ef730c6534791a60183d182a6a912b3709a4d97c92d7fecb445d
pytest.raises|test_no_host|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch i...
null
null
null
urllib3/urllib3
train
542
73953a07de9008b2650bf9614590e81c169e94cb
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
461
12
assert
test_ca_certs_default_cert_required
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
ssl.CERT_REQUIRED
added
fa0dfd9db95ca9c915f12616f5f62f31d6a01f1c6870824db20c6f5700cc0438
assert|test_ca_certs_default_cert_required|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock impo...
null
null
null
urllib3/urllib3
train
543
ae528a440df2ec1be48def07253ca4cff1fa3ce2
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", byte_string_comparisons: bool = True, ) -> None: # Install de...
process.stderr
added
0abe1c2ecb0d24cfc3649960e06750aeab543e49218be199454f696d83b82623
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", byte_string_comparisons: bool = True, ) -> None: # Install deps and the package itself. session.i...
null
null
null
urllib3/urllib3
train
544
9fbab29644bfc8068eb2082d0f25726c91813337
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
538
16
assert
_test
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
None
modified
6f1a8c95aae908537e43a2083dfb3ec6a1c26d694d3a6fb7634099d9df7c3abe
assert|_test|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest f...
None
538
16
urllib3/urllib3
train
544
9fbab29644bfc8068eb2082d0f25726c91813337
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
558
21
pytest.raises
test_read_timeout_0_does_not_raise_bad_status_line_error
import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, Type from unittest.mock import Mock, patch import pytest from dummyse...
ReadTimeoutError)
modified
c3dac26ae0626d5b8f5bd808b3bde9d536b706d22c70ea73d45c7c9e8bb0c966
pytest.raises|test_read_timeout_0_does_not_raise_bad_status_line_error|import http.client as httplib import ssl from http.client import HTTPException from queue import Empty from socket import error as SocketError from ssl import SSLError as BaseSSLError from test import SHORT_TIMEOUT from typing import Any, Optional, ...
ReadTimeoutError)
558
21
urllib3/urllib3
train
544
9fbab29644bfc8068eb2082d0f25726c91813337
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
887
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 from typing import Any, Generator, List, Optional from unit...
request_url
modified
fcd60806580ae2f008fb326db5d3facae6f833cd826b77dcd8a6eb0371194632
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 from typing import Any, Generator, List, Op...
request_url
887
8
urllib3/urllib3
train
544
9fbab29644bfc8068eb2082d0f25726c91813337
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
950
8
assert
test__iter__decode_content
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 from typing import Any, Generator, List, Optional from unit...
data
modified
b96f0e08bb033cb724884a6959391c21dd702449e3c3735b231eaf8d2f86b952
assert|test__iter__decode_content|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 from typing import Any, G...
data
950
8
urllib3/urllib3
train
544
9fbab29644bfc8068eb2082d0f25726c91813337
train
test/test_ssltransport.py
train
urllib3/urllib3:test/test_ssltransport.py
536
13
pytest.raises
test_various_flags_errors
import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.u...
ValueError)
modified
cacd7a9c5d27fa1a968fea85364929cd866ce898359931ea3028e80110506523
pytest.raises|test_various_flags_errors|import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerT...
ValueError)
535
13
urllib3/urllib3
train
544
9fbab29644bfc8068eb2082d0f25726c91813337
train
test/test_ssltransport.py
train
urllib3/urllib3:test/test_ssltransport.py
564
17
pytest.raises
test_wrap_ssl_read_error
import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.u...
ssl.SSLError)
modified
49795a89369d7edf3a45ae2c8e42198bb8b878e808237fc32f10dc85995db52b
pytest.raises|test_wrap_ssl_read_error|import platform import select import socket import ssl from typing import TYPE_CHECKING, Callable, Optional, Tuple, Union, overload from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTe...
ssl.SSLError)
563
17
urllib3/urllib3
train
544
9fbab29644bfc8068eb2082d0f25726c91813337
train
test/test_wait.py
train
urllib3/urllib3:test/test_wait.py
71
4
assert
test_wait_for_socket
import signal import threading import time from socket import socket, socketpair from types import FrameType from typing import Any, Callable, Generator, List, Optional, Tuple import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait_for_read,...
wfs(a, read=True, timeout=0)
modified
534a0c7700364a34fcbe4c3393eea0f62cc601fd32cd7bd1d755b33efb04f543
assert|test_wait_for_socket|import signal import threading import time from socket import socket, socketpair from types import FrameType from typing import Any, Callable, Generator, List, Optional, Tuple import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait...
wfs(a, read=True, timeout=0)
71
4
urllib3/urllib3
train
544
9fbab29644bfc8068eb2082d0f25726c91813337
train
test/test_wait.py
train
urllib3/urllib3:test/test_wait.py
172
8
assert
test_eintr_infinite_timeout
import signal import threading import time from socket import socket, socketpair from types import FrameType from typing import Any, Callable, Generator, List, Optional, Tuple import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait_for_read,...
signal.SIGALRM
modified
8441157e5888cb5f4a100666a74b84cf7d17f62b893f6e7420c0917a4f59303e
assert|test_eintr_infinite_timeout|import signal import threading import time from socket import socket, socketpair from types import FrameType from typing import Any, Callable, Generator, List, Optional, Tuple import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socke...
signal.SIGALRM
172
8
urllib3/urllib3
train
545
f69b1c89f885a74429cabdee2673e030b35979f0
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
234
8
assert
test_exhausted
from test import DUMMY_POOL from typing import Optional from unittest import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.response import HTTPResponse from urllib3.util.retry imp...
not Retry(0).is_exhausted()
added
8c6c522fe6523d2f1f1cbc5360be3d28877d247b410136cff0542d612b85d4af
assert|test_exhausted|from test import DUMMY_POOL from typing import Optional from unittest import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.response import HTTPResponse from urllib3.util.retry import ...
null
null
null
urllib3/urllib3
train
545
f69b1c89f885a74429cabdee2673e030b35979f0
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
300
13
pytest.raises
test_retry_method_not_allowed
from test import DUMMY_POOL from typing import Optional from unittest import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.response import HTTPResponse from urllib3.util.retry imp...
ReadTimeoutError)
added
938e552b62c8dccab0b2363a888568d58e5f00385ace181ca5db4afb58ee45e0
pytest.raises|test_retry_method_not_allowed|from test import DUMMY_POOL from typing import Optional from unittest import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.response import HTTPResponse from urll...
null
null
null
urllib3/urllib3
train
545
f69b1c89f885a74429cabdee2673e030b35979f0
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
311
8
assert
test_retry_set_remove_headers_on_redirect
from test import DUMMY_POOL from typing import Optional from unittest import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.response import HTTPResponse from urllib3.util.retry imp...
["x-api-secret"]
added
d4e5af26dacd056ef3c37800875465c6bdea83c5b47d7f2ece781cb60e0c279e
assert|test_retry_set_remove_headers_on_redirect|from test import DUMMY_POOL from typing import Optional from unittest import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.response import HTTPResponse from...
null
null
null
urllib3/urllib3
train
545
f69b1c89f885a74429cabdee2673e030b35979f0
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
316
13
pytest.raises
test_parse_retry_after_invalid
from test import DUMMY_POOL from typing import Optional from unittest import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.response import HTTPResponse from urllib3.util.retry imp...
InvalidHeader)
added
638202ffc8c2ed728fd34bff29b31c833db7d88c77fdaeaf2cffc210edcc2415
pytest.raises|test_parse_retry_after_invalid|from test import DUMMY_POOL from typing import Optional from unittest import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.response import HTTPResponse from url...
null
null
null
urllib3/urllib3
train
546
726e295dfeacd4b5f1464b5ac53e277250951f0a
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
548
8
assert
test_add_stderr_logger
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, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch import py...
logger.handlers
modified
7e290768c8c24a1b14f2ce69327136d93e442a4417dc25b8cf2973109d5c58c9
assert|test_add_stderr_logger|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, Optional, Tuple, Union from unittest import mock from unittest.mock import Mag...
logger.handlers
548
8
urllib3/urllib3
train
546
726e295dfeacd4b5f1464b5ac53e277250951f0a
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
804
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, onlyBrotli from typing import TYPE_CHECKING, Dict, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch import py...
socket.gaierror)
modified
bba17448e5e2edcc85b4581f3a70fc5cfe430748f1bc49470866e0ce037d4254
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, onlyBrotli from typing import TYPE_CHECKING, Dict, Optional, Tuple, Union from unittest import mock from unittest.m...
socket.gaierror)
804
13
urllib3/urllib3
train
546
726e295dfeacd4b5f1464b5ac53e277250951f0a
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
849
13
pytest.raises
test_to_bytes_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, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch import py...
TypeError, match="not expecting type int")
modified
003fe9e4cd7cd1bc5fdf22f9af3b7d375ecc061e377800611998a8752921be2c
pytest.raises|test_to_bytes_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, Optional, Tuple, Union from unittest import mock from unittest.mock import...
TypeError, match="not expecting type int")
849
13
urllib3/urllib3
train
546
726e295dfeacd4b5f1464b5ac53e277250951f0a
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
996
8
assert
test_is_has_never_check_common_name_reliable
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, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch import py...
reliable
modified
86c08df2346da9b1dace14ac934c402d64b5c11599cdaeff7429449f1b1063c7
assert|test_is_has_never_check_common_name_reliable|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, Optional, Tuple, Union from unittest import mock from un...
reliable
996
8
urllib3/urllib3
train
547
49848a178c1ad108d311bdf904bd63aa3fd593e0
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
509
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, onlyBrotli from typing import TYPE_CHECKING, Dict, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch ...
b"test data"
modified
60e857e9790fc243feca65d98d41440f7ed77b0357fed3560daa1e96dc067143
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, onlyBrotli from typing import TYPE_CHECKING, Dict, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import...
b"test data"
509
8
urllib3/urllib3
train
547
49848a178c1ad108d311bdf904bd63aa3fd593e0
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
548
8
assert
test_add_stderr_logger
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, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch ...
logger.handlers
modified
499c60019b18c3bb38ae1c998a61d7bb6a5a59469e7a6e61870ecdc10561d228
assert|test_add_stderr_logger|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, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock ...
logger.handlers
548
8
urllib3/urllib3
train
547
49848a178c1ad108d311bdf904bd63aa3fd593e0
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
587
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, onlyBrotli from typing import TYPE_CHECKING, Dict, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch ...
ValueError, match=message)
modified
988135a293abc229ce5616db336d98cee367f6d6673d75cea7ebe0b90eee137f
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, onlyBrotli from typing import TYPE_CHECKING, Dict, NoReturn, Optional, Tuple, Union from unittest import mock from unittest...
ValueError, match=message)
587
13
urllib3/urllib3
train
547
49848a178c1ad108d311bdf904bd63aa3fd593e0
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
669
8
assert
test_is_fp_closed_object_supports_closed
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, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, patch ...
is_fp_closed(ClosedFile())
modified
4ae30219c8842923d8c3e774fbbb18630c4bd7730ab613b148acb3efd8be0ddf
assert|test_is_fp_closed_object_supports_closed|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, NoReturn, Optional, Tuple, Union from unittest import mock f...
is_fp_closed(ClosedFile())
669
8
urllib3/urllib3
train
547
49848a178c1ad108d311bdf904bd63aa3fd593e0
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
192
17
pytest.raises
test_total_timeout
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...
ReadTimeoutError)
modified
42ec6f0d43fc30707615564222ed5075f136edb55e5b25003b3ce5c25a8646b9
pytest.raises|test_total_timeout|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 impor...
ReadTimeoutError)
192
17
urllib3/urllib3
train
547
49848a178c1ad108d311bdf904bd63aa3fd593e0
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
559
17
pytest.raises
test_bad_decode
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...
DecodeError)
modified
5f3598d44a95fb56f102baa0c7d7152396a1e6bb34e9064b4258a816e3486cfa
pytest.raises|test_bad_decode|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 p...
DecodeError)
559
17
urllib3/urllib3
train
547
49848a178c1ad108d311bdf904bd63aa3fd593e0
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
1,152
12
assert
test_retry_return_in_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...
( RequestHistory("GET", "/successful_retry", None, 418, None), )
modified
c19e405f52130704d4b339d8857678f2813aa9fbf02ac4d0239eba09f05f3a82
assert|test_retry_return_in_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 i...
( RequestHistory("GET", "/successful_retry", None, 418, None), )
1,152
12
urllib3/urllib3
train
547
49848a178c1ad108d311bdf904bd63aa3fd593e0
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
1,174
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...
None
modified
d59148a7692cb9f7982cc96af1a397e2ea9af924ccbff9ba21cb28e22d4d7a78
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...
None
1,174
12
urllib3/urllib3
train
548
33afb5c96c435ab7118b5f41e26f96c290fef55b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
499
17
pytest.raises
test_url_vulnerabilities
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)
added
8134d99ccd93b3fe6381a845a679b4ac8ffa3c4793a94db22fb01566de13bcc0
pytest.raises|test_url_vulnerabilities|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
548
33afb5c96c435ab7118b5f41e26f96c290fef55b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
726
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
e06965960ad97458f0a16df1ca2d17302485248ee03e6d1bce7d7f59320077d4
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
548
33afb5c96c435ab7118b5f41e26f96c290fef55b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
807
8
assert_*
test_assert_header_parsing_no_error_on_multipart
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, ...
client.parse_headers(header_msg))
added
0d20ada07bc0293d0741a3329aae54a5241472c117d8fbd94d94378fa8f2a216
assert_*|test_assert_header_parsing_no_error_on_multipart|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 unitte...
null
null
null
urllib3/urllib3
train
548
33afb5c96c435ab7118b5f41e26f96c290fef55b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
850
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, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, ...
socket.gaierror)
added
f47e290de86db561965db50e2a895eecb2a109075c29525f99942ea1bb42bf60
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, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mo...
null
null
null
urllib3/urllib3
train
549
f070ec2e6f6c545f40d9196e5246df10c72e48e1
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
37
13
pytest.raises
test_match_hostname_empty_cert
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, ) from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCert...
ValueError)
added
364f6f96aac994438d326cd76bd82df141ff367f50e422f724f44b0207ada5a5
pytest.raises|test_match_hostname_empty_cert|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, ) from urllib3.util.ssl_match_hostname import ( CertificateError...
null
null
null
urllib3/urllib3
train
549
f070ec2e6f6c545f40d9196e5246df10c72e48e1
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
101
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, ) from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCert...
CertificateError, match="too many wildcards in certificate")
modified
a02b6ae1b2e45e1cb817b3da905ed31872223207f43d27b71742d766b80e43e9
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, ) from urllib3.util.ssl_match_hostname ...
CertificateError, match="too many wildcards in certificate")
98
13
urllib3/urllib3
train
549
f070ec2e6f6c545f40d9196e5246df10c72e48e1
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
128
12
assert_*
test_match_hostname_ip_address
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, ) from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCert...
{"subjectAltName": (("IP Address", "1.1.1.1"),)})
added
48168bb5c5f30aea79093fcea664ed9c53a1b14d5c7855877ebf467ff8bd39f3
assert_*|test_match_hostname_ip_address|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, ) from urllib3.util.ssl_match_hostname import ( CertificateError as I...
null
null
null
urllib3/urllib3
train
549
f070ec2e6f6c545f40d9196e5246df10c72e48e1
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
1,037
8
assert
test_is_has_never_check_common_name_reliable
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, ...
reliable
modified
1d2689ef65f8063ddf73ade9eb5cb1d78e67122f122136424e5a538318b1ae4a
assert|test_is_has_never_check_common_name_reliable|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 imp...
reliable
1,037
8
urllib3/urllib3
train
549
f070ec2e6f6c545f40d9196e5246df10c72e48e1
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
1,067
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}")
modified
9046efdcc656dd1b0bac67c584ad7632725cc54e3598a7a49ed66c7cf4daec5a
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...
LocationParseError, match=f"Failed to parse: {url}")
1,067
13
urllib3/urllib3
train
549
f070ec2e6f6c545f40d9196e5246df10c72e48e1
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
214
12
assert
test_client_key_password
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...
subject["organizationalUnitName"].startswith("Testing cert")
modified
b2a353e5da600f7541157f9e2242e2955c6100899efe3f2abc142074635c20e2
assert|test_client_key_password|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, resolvesLoc...
subject["organizationalUnitName"].startswith("Testing cert")
213
12
urllib3/urllib3
train
549
f070ec2e6f6c545f40d9196e5246df10c72e48e1
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
260
16
assert
test_verified_with_context
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...
not warn.called
modified
ed016719d4d25dae9086d1cfada64efc2d56c3be0234b5fcc93dcc0bc343bf55
assert|test_verified_with_context|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, resolvesL...
not warn.called
259
16
urllib3/urllib3
train
549
f070ec2e6f6c545f40d9196e5246df10c72e48e1
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
340
17
pytest.raises
test_verified_without_ca_certs
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
9a56987a5849e42aed5089625dbe46ab5325819c31f6a87cdeb6666ffe62ff16
pytest.raises|test_verified_without_ca_certs|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...
MaxRetryError)
339
17
urllib3/urllib3
train
550
71dadd093b117ced7804a485af8765503f197404
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", byte_string_comparisons: bool = True, ) -> None: # Install de...
process.stderr
modified
26189ebd2f859bb9114fb6840d288a584be291e4a4dd57ddb917b3e05f2d9202
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", byte_string_comparisons: bool = True, ) -> None: # Install deps and the package itself. session.i...
process.stderr
71
4
urllib3/urllib3
train
551
2459900b10f54326745a597cc1cf2bf8a18f0d56
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
412
12
assert
test_encode_http_target
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...
expected_target
added
e4cadbd2de7a10e69a9cd8280f3066abac37eecda2c58994f27a34d4fffaf851
assert|test_encode_http_target|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.connection...
null
null
null
urllib3/urllib3
train
551
2459900b10f54326745a597cc1cf2bf8a18f0d56
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
421
13
pytest.raises
test_top_level_request_without_keyword_args
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...
TypeError)
added
a35d010514b707812db5dd4d5246bccf84cddce9aff99e3e098587a713e1d47a
pytest.raises|test_top_level_request_without_keyword_args|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, requ...
null
null
null
urllib3/urllib3
train
551
2459900b10f54326745a597cc1cf2bf8a18f0d56
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
535
12
assert
test_top_level_request_with_json_with_httpheaderdict
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...
r.headers["Content-Type"].replace( " ", "" ).split(",")
added
28dfd53243cfbf8bce2de355956a1bb3370a1dd6c2ec63072b1b8772d5911196
assert|test_top_level_request_with_json_with_httpheaderdict|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, re...
null
null
null
urllib3/urllib3
train
551
2459900b10f54326745a597cc1cf2bf8a18f0d56
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
541
13
pytest.raises
test_top_level_request_with_body_and_json
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...
TypeError, match=match)
added
f978cb40ff7bc905c7eeb6886c1f1ba17c61e440ce2acb2d4aa1a84b01d6a076
pytest.raises|test_top_level_request_with_body_and_json|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, reques...
null
null
null
urllib3/urllib3
train
552
ea96fde9450b2d0d233f0414c7be0a75148fae8b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
546
8
assert
test_make_headers
import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock import MagicMock, Mock, ...
expected
modified
9f5a67aae80475d97a9932a47436d47b3d3989531e988ec0eda5ae154fa7fe80
assert|test_make_headers|import io import logging import socket import ssl import sys import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, onlyBrotli from typing import TYPE_CHECKING, Dict, List, NoReturn, Optional, Tuple, Union from unittest import mock from unittest.mock...
expected
546
8
urllib3/urllib3
train
552
ea96fde9450b2d0d233f0414c7be0a75148fae8b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
583
13
pytest.raises
test_rewind_body_failed_seek
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, ...
UnrewindableBodyError)
modified
c58f5d66132e70628cd3bf4779eb6df2f636572159efe4058af4a96bdc48592d
pytest.raises|test_rewind_body_failed_seek|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 ...
UnrewindableBodyError)
583
13
urllib3/urllib3
train
552
ea96fde9450b2d0d233f0414c7be0a75148fae8b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
726
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())
modified
d5b9d3435996debbabeb6624d9bb438af2a338d5dd01796ede5d7da0ca6071ec
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...
not is_fp_closed(FpFile())
726
8
urllib3/urllib3
train
552
ea96fde9450b2d0d233f0414c7be0a75148fae8b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
992
12
assert
test_ssl_wrap_socket_sni_hostname_use_or_warn
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, ...
warnings
modified
75858618a7f6ef7212d94acaaca5278e11a435597e4816f8672f6dcb1e6b1607
assert|test_ssl_wrap_socket_sni_hostname_use_or_warn|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 im...
1
994
12
urllib3/urllib3
train
552
ea96fde9450b2d0d233f0414c7be0a75148fae8b
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
159
12
assert
test_proxy_conn_fail_from_dns
import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase import HT...
urllib3.exceptions.NameResolutionError
modified
885574267dcba9c8beedf5401f465c676d3ccd0014753503b2fec8d2e2fbd186
assert|test_proxy_conn_fail_from_dns|import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address ...
urllib3.exceptions.NameResolutionError
158
12
urllib3/urllib3
train
552
ea96fde9450b2d0d233f0414c7be0a75148fae8b
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
226
12
assert
test_redirect
import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase import HT...
b"Dummy server!"
modified
5c2f4f394cc37247816172ac4ac4fdffdd4c86e0480aa5092d34b6e7b0748f40
assert|test_redirect|import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver...
b"Dummy server!"
225
12
urllib3/urllib3
train
552
ea96fde9450b2d0d233f0414c7be0a75148fae8b
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
523
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 import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase import HT...
ConnectTimeoutError
modified
fa52bba7c90860e126c7053b751b2a97f6014d5f6b75a2d3897b3e509c3a2ad5
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 import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_...
ConnectTimeoutError
522
12
urllib3/urllib3
train
552
ea96fde9450b2d0d233f0414c7be0a75148fae8b
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
651
12
assert
test_https_proxy_hostname_verification
import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from dummyserver.testcase import HT...
isinstance(e.value.reason, ProxyError)
added
e98a477ae17e1b3195bcccf497f15a6e0d5930e0c23725fdfd9b1e2c3b6a3ad6
assert|test_https_proxy_hostname_verification|import os.path import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL import pytest import trustme import urllib3.exceptions from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable...
null
null
null
urllib3/urllib3
train
553
8ab5eb83a0bf359f5372a8eff2b07f46fe34203d
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", byte_string_comparisons: bool = True, ) -> None: # Install de...
process.stderr
modified
96de1717b932c9ece42ab985e95bebcf8f8c809c68e32614eeb615a622002c42
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", byte_string_comparisons: bool = True, ) -> None: # Install deps and the package itself. session.i...
process.stderr
71
4
urllib3/urllib3
train
554
82d1f1833e9880701f72ad9a50155e20dcc60efd
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
66
8
assert
test_dnsname_to_stdlib_simple
import os from unittest import mock import pytest try: from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate # type: ignore[import] from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name except ImportError: pass def setup_module() -> None: ...
expected_result
modified
66152c3705874fad54d3f56f4e32c3bc6160473d13786e5f426796066f4cf85f
assert|test_dnsname_to_stdlib_simple|import os from unittest import mock import pytest try: from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate # type: ignore[import] from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name except ImportError: pass def setup_module...
expected_result
65
8
urllib3/urllib3
train
554
82d1f1833e9880701f72ad9a50155e20dcc60efd
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
85
8
assert
test_dnsname_to_stdlib_leading_splat
import os from unittest import mock import pytest try: from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate # type: ignore[import] from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name except ImportError: pass def setup_module() -> None: ...
expected_result
modified
a1d6728d85f2f167133bce7f27317f9ed033f59fe3364e83541e5a4628bd1a5b
assert|test_dnsname_to_stdlib_leading_splat|import os from unittest import mock import pytest try: from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate # type: ignore[import] from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name except ImportError: pass def setup...
expected_result
84
8
urllib3/urllib3
train
554
82d1f1833e9880701f72ad9a50155e20dcc60efd
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
162
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, ) from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCert...
str(e.value)
added
d744068751119ccd7e08f02d05d290ea9768d8348fdbdd9820ec5c4c175de1cc
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, ) from urllib3.util.ssl_match_hostname import ( Cer...
null
null
null
urllib3/urllib3
train
554
82d1f1833e9880701f72ad9a50155e20dcc60efd
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
185
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, ) from urllib3.util.ssl_match_hostname import ( CertificateError as ImplementationCert...
[(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)]
added
c351a71de1f52339ed40db366d0293e5f0e2d1fc05fee5def0b4777f56d489ac
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, ) from urllib3.util.ssl_match_hostname import ( Certificat...
null
null
null
urllib3/urllib3
train
554
82d1f1833e9880701f72ad9a50155e20dcc60efd
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
342
12
assert
test_verified_without_ca_certs
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...
isinstance(e.value.reason, SSLError)
modified
6ff1ef17ea241ceb2b5264fdb8243fa234bac0e022006c00b4a41d62c259a6ba
assert|test_verified_without_ca_certs|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...
isinstance(e.value.reason, SSLError)
342
12
urllib3/urllib3
train
554
82d1f1833e9880701f72ad9a50155e20dcc60efd
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
535
12
assert
test_verify_none_and_bad_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...
isinstance(cm.value.reason, SSLError)
modified
ff91307c0fd7738e939e1b61cba25cabe97f55f768ea7bafc34cac2bb552e63c
assert|test_verify_none_and_bad_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,...
isinstance(cm.value.reason, SSLError)
535
12
urllib3/urllib3
train
554
82d1f1833e9880701f72ad9a50155e20dcc60efd
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
408
12
assert
test_headerdict
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...
"bar"
modified
5b5b028e7acdb23ddd91a6a13b2f8f2ddad9bc24f05ec51651ab39f4a8580208
assert|test_headerdict|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 imp...
"bar"
407
12