repo_id
string
cross_repo_split
string
commit_index
int32
commit_sha
string
in_repo_split
string
test_file
string
file_split
string
split_group
string
lineno
int32
col_offset
int32
assertion_type
string
test_function
string
prefix
large_string
target
string
assertion_event_type
string
assertion_event_id
string
assertion_anchor
large_string
old_target
string
old_lineno
int32
old_col_offset
int32
urllib3/urllib3
train
390
d455be9463b547b4a6efb3b6de52abfe2b62e3e8
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
408
12
assert
test_https_proxy_timeout
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
ConnectTimeoutError
modified
bfefb57377d5f15d953fd1f8513c2b0531f09fc4b688dbdeb92734e07e1fe23a
assert|test_https_proxy_timeout|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST,...
ConnectTimeoutError
405
12
urllib3/urllib3
train
391
cf6ab7aaa4211d75603ace1fcaa1e7f7f772458e
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
361
16
assert_*
test_respect_retry_after_header_sleep
import mock import pytest from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ...
sleep_duration)
added
1d61fdcde006d61e7e85cacd16eb72ab446b614ba3e664768f6fab8a085c2ab0
assert_*|test_respect_retry_after_header_sleep|import mock import pytest from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxR...
null
null
null
urllib3/urllib3
train
392
24e540fb1ee8e127d7d3a354c6fa50c22e61ed11
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
868
17
pytest.raises
test_max_retry
import io import json import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.co...
MaxRetryError)
added
07afc64e3f52a7b9d570d96e40bb12e796cdfe961ad83302a52b57f6e1205271
pytest.raises|test_max_retry|import io import json import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPCon...
null
null
null
urllib3/urllib3
train
392
24e540fb1ee8e127d7d3a354c6fa50c22e61ed11
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
986
12
assert
test_retry_redirect_history
import io import json import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.co...
( RequestHistory("GET", "/redirect?target=%2F", None, 303, "/"), )
added
48317038be374adc5e66bdb73b0fa30b09bacf8af08ab98663f72f001e8b1c0d
assert|test_retry_redirect_history|import io import json import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, H...
null
null
null
urllib3/urllib3
train
392
24e540fb1ee8e127d7d3a354c6fa50c22e61ed11
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
1,009
12
assert
test_multi_redirect_history
import io import json import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.co...
b"Done redirecting"
added
f42a91c68b6d12f9b6892d0247c0f54cf65573017da7503a95926325e7ccaf26
assert|test_multi_redirect_history|import io import json import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, H...
null
null
null
urllib3/urllib3
train
392
24e540fb1ee8e127d7d3a354c6fa50c22e61ed11
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
1,158
12
assert
test_redirect_put_file
import io import json import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.co...
data
added
b4929f6414b42c4e7ea416de512aa77ce59f203218c2c24351fb1c954ec50480
assert|test_redirect_put_file|import io import json import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPCo...
null
null
null
urllib3/urllib3
train
393
bb862a23587cdbab9483cd096ab3cf96042d2756
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
122
8
assert
test_decode_deflate
# -*- coding: utf-8 -*- import contextlib import re import socket import ssl import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, ResponseNotChunked, Protocol...
b"foo"
modified
173d598c62924f7197b00d1e3aab13dcb046f61b02030ce52a9d0926e118e1c4
assert|test_decode_deflate|# -*- coding: utf-8 -*- import contextlib import re import socket import ssl import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, ResponseNotChunke...
b"foo"
119
8
urllib3/urllib3
train
393
bb862a23587cdbab9483cd096ab3cf96042d2756
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
276
8
assert
test_multi_decoding_deflate_gzip
# -*- coding: utf-8 -*- import contextlib import re import socket import ssl import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, ResponseNotChunked, Protocol...
b"foo"
modified
6c791d6ae24f1f8a5e948b4c22202ed7678cddd1009a109cf8220ec10ea43bee
assert|test_multi_decoding_deflate_gzip|# -*- coding: utf-8 -*- import contextlib import re import socket import ssl import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, Resp...
b"foo"
273
8
urllib3/urllib3
train
393
bb862a23587cdbab9483cd096ab3cf96042d2756
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
758
8
assert
test_mock_transfer_encoding_chunked_unlmtd_read
# -*- coding: utf-8 -*- import contextlib import re import socket import ssl import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, ResponseNotChunked, Protocol...
list(resp.read_chunked())
modified
24245e2134fe8191b2de5e0f5fa147bad1d840701d2e6c49126d0b7b1ff479fa
assert|test_mock_transfer_encoding_chunked_unlmtd_read|# -*- coding: utf-8 -*- import contextlib import re import socket import ssl import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( De...
list(resp.read_chunked())
755
8
urllib3/urllib3
train
393
bb862a23587cdbab9483cd096ab3cf96042d2756
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
919
8
assert
test__iter__
# -*- coding: utf-8 -*- import contextlib import re import socket import ssl import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, ResponseNotChunked, Protocol...
expected_stream
modified
5512ececdaadfc2055c1990c37d68ea4cc74a05dcb8971f82db360ccffe79c7e
assert|test__iter__|# -*- coding: utf-8 -*- import contextlib import re import socket import ssl import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, ResponseNotChunked, Prot...
expected_stream
916
8
urllib3/urllib3
train
394
ddc28ad5399a94be125dea8db1dc3588fcf05b7b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
780
8
assert
test_resolve_cert_reqs
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.uti...
requirements
added
e4e6bfaa1ebe5153e3ae9e8d66cad0859c9a68e362cfb1e54b6b46b64965b1a6
assert|test_resolve_cert_reqs|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make_headers, rewind_body, ...
null
null
null
urllib3/urllib3
train
394
ddc28ad5399a94be125dea8db1dc3588fcf05b7b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
808
8
assert_*
test_ssl_wrap_socket_creates_new_context
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.uti...
"CERT_REQUIRED")
added
487fc4648ec0d7012f2c614240fadf3baa84a6d40ce19c46b447fd6bb77f405f
assert_*|test_ssl_wrap_socket_creates_new_context|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make_he...
null
null
null
urllib3/urllib3
train
394
ddc28ad5399a94be125dea8db1dc3588fcf05b7b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
836
8
assert_*
test_ssl_wrap_socket_loads_certificate_data
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.uti...
"TOTALLY PEM DATA")
added
6029db0fccb33f6ba329c4b982a4deea3bca7072ddce9a49686e0c52252396a9
assert_*|test_ssl_wrap_socket_loads_certificate_data|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make...
null
null
null
urllib3/urllib3
train
394
ddc28ad5399a94be125dea8db1dc3588fcf05b7b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
862
12
assert
test_ssl_wrap_socket_sni_hostname_use_or_warn
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.uti...
warnings
added
fae8a83f6a33188a478598a64b1285e910f4b6610b571765d7ab2d12e041e171
assert|test_ssl_wrap_socket_sni_hostname_use_or_warn|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make...
null
null
null
urllib3/urllib3
train
394
ddc28ad5399a94be125dea8db1dc3588fcf05b7b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,842
16
assert
test_multipart_assert_header_parsing_no_defects
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
"multipart/mixed; boundary=36eeb8c4e26d842a"
added
c67531bd3d9f334933abb3d91c5473210b3e3cdfdeccb678e86e452c73f2f9d5
assert|test_multipart_assert_header_parsing_no_defects|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_d...
null
null
null
urllib3/urllib3
train
397
5b2e40b77c03655a7e2d50e1c4c9c7235f6e2001
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
47
16
assert
test_chunks
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from test import notWindows # Retry failed tests pytestmark = pytest.mark.flaky c...
hex(len(chunk))[2:].encode("utf-8")
modified
59b553f8c14dbef364af208de498868158c709885d251b085bd29f83ab7e7e67
assert|test_chunks|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from test import notWindows # Retry failed tests pytestmark = pytes...
hex(len(chunk))[2:].encode("utf-8")
46
16
urllib3/urllib3
train
397
5b2e40b77c03655a7e2d50e1c4c9c7235f6e2001
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
48
16
assert
test_chunks
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from test import notWindows # Retry failed tests pytestmark = pytest.mark.flaky c...
chunk.encode("utf-8")
modified
8219eb84ea342a0275a8e89812959daa8c5aee575085d3cec51555b07ca23d1d
assert|test_chunks|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from test import notWindows # Retry failed tests pytestmark = pytes...
chunk.encode("utf-8")
47
16
urllib3/urllib3
train
397
5b2e40b77c03655a7e2d50e1c4c9c7235f6e2001
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
64
16
assert
_test_body
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from test import notWindows # Retry failed tests pytestmark = pytest.mark.flaky c...
len(bdata)
modified
bacc55d83a1d10cd7b043308e070033983027937557dbd8e40492ff03e1c1edd
assert|_test_body|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from test import notWindows # Retry failed tests pytestmark = pytest...
len(bdata)
63
16
urllib3/urllib3
train
397
5b2e40b77c03655a7e2d50e1c4c9c7235f6e2001
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
66
16
assert
_test_body
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from test import notWindows # Retry failed tests pytestmark = pytest.mark.flaky c...
b"0\r\n\r\n"
modified
4a2046eb9181fd1df5db7208fc3f23f04321526cff89408c0816deac65d0f97b
assert|_test_body|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from test import notWindows # Retry failed tests pytestmark = pytest...
b"0\r\n\r\n"
65
16
urllib3/urllib3
train
399
e4808469d2befecc8a906273e12abdfb6b523323
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. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
r.data
modified
7f6c0f096defe5e48d653c487ce0bc0bff8e29ef42fd4dabea5cd2f6e4ce4cd2
assert|test_headers|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exce...
r.data
1,009
12
urllib3/urllib3
train
399
e4808469d2befecc8a906273e12abdfb6b523323
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,289
13
pytest.raises
test_ssl_failed_fingerprint_verification
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
MaxRetryError)
modified
c6e748a9f554262b1abd0383d282549289967186c475776339415d4537e03900
pytest.raises|test_ssl_failed_fingerprint_verification|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_d...
MaxRetryError)
1,290
13
urllib3/urllib3
train
399
e4808469d2befecc8a906273e12abdfb6b523323
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,377
21
pytest.raises
test_ssl_load_default_certs_when_empty
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
MaxRetryError)
modified
c63a8e34934a6c133d627689ca2fdc2f82e15cfed812e501c9331fe9dd7e0130
pytest.raises|test_ssl_load_default_certs_when_empty|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_def...
MaxRetryError)
1,378
21
urllib3/urllib3
train
399
e4808469d2befecc8a906273e12abdfb6b523323
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,710
12
assert
test_stream_none_unchunked_response_does_not_hang
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
list(r.stream(None))
modified
a2e3939fb52063569b5727ac6bfad76491702331f4f63b73d8cd49820b64c668
assert|test_stream_none_unchunked_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get...
list(r.stream(None))
1,711
12
urllib3/urllib3
train
400
0df65fad77ae649a846ed89421927b7d6eb8d803
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. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
r.data
modified
fe801e0562e4b5a45fe9f0d159fdda1d5e04e17df799bf30a5e9374e8d665afc
assert|test_headers|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exce...
r.data
1,008
12
urllib3/urllib3
train
400
0df65fad77ae649a846ed89421927b7d6eb8d803
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,448
17
pytest.raises
test_unknown_protocol
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
ProtocolError)
modified
15d01445b8e9fbf4bacaa156cdd2ac84b67bcd6823b911c05b8017fb48b384ee
pytest.raises|test_unknown_protocol|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent f...
ProtocolError)
1,448
17
urllib3/urllib3
train
400
0df65fad77ae649a846ed89421927b7d6eb8d803
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,464
12
assert
test_httplib_headers_case_insensitive
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
dict(r.headers.items())
modified
c81bca7176dfb61fed116ef5f8b45ae4f34456d449282876b531e3696cbac4e9
assert|test_httplib_headers_case_insensitive|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_use...
dict(r.headers.items())
1,464
12
urllib3/urllib3
train
400
0df65fad77ae649a846ed89421927b7d6eb8d803
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,668
12
assert
test_chunked_head_response_does_not_hang
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
list(r.stream())
modified
1c960668a0127cd087370e6c5d80b5e2cacf1aa2cc77da04e3427d86a455e870
assert|test_chunked_head_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_...
list(r.stream())
1,668
12
urllib3/urllib3
train
401
e4c43f5178bfef0fbb878fc9b3573ff5fbe4c5ed
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
417
12
assert
test_recovery_when_server_closes_connection
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_us...
b"Response 1"
modified
0b5776ee9495273667bd79d6d8b342d1fccfddb63a77ed8fed631a760a217f24
assert|test_recovery_when_server_closes_connection|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from...
b"Response 1"
415
12
urllib3/urllib3
train
401
e4c43f5178bfef0fbb878fc9b3573ff5fbe4c5ed
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
536
16
assert
test_timeout_errors_cause_retries
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_us...
b"Response 2"
modified
6de3481a34ea0dcf537b12b997d9448b77873562d7bdd26e8da991a780717d5a
assert|test_timeout_errors_cause_retries|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from ...
b"Response 2"
534
16
urllib3/urllib3
train
401
e4c43f5178bfef0fbb878fc9b3573ff5fbe4c5ed
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,291
13
pytest.raises
test_ssl_failed_fingerprint_verification
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_us...
MaxRetryError)
modified
78b71fb7e661ef5a2ddb26c59de298e05e57277d6863038f687d2fbcedadaf7b
pytest.raises|test_ssl_failed_fingerprint_verification|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_...
MaxRetryError)
1,289
13
urllib3/urllib3
train
401
e4c43f5178bfef0fbb878fc9b3573ff5fbe4c5ed
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,670
12
assert
test_chunked_head_response_does_not_hang
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_us...
list(r.stream())
modified
10eb5360da5fded2a7ee961d4963812e5827376c2762e34428f20131a9cb8017
assert|test_chunked_head_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_ur...
list(r.stream())
1,668
12
urllib3/urllib3
train
402
5aa09b434c8627729905ed7ff23bb45378996c2e
train
test/contrib/test_ssltransport.py
train
urllib3/urllib3:test/contrib/test_ssltransport.py
210
12
assert
test_ssl_object_attributes
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate forever, we add t...
None
added
5374ac7753d2184992872acb968edf903cf7298d166e0ddfae2bf8ec0506a610
assert|test_ssl_object_attributes|from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can ite...
null
null
null
urllib3/urllib3
train
402
5aa09b434c8627729905ed7ff23bb45378996c2e
train
test/contrib/test_ssltransport.py
train
urllib3/urllib3:test/contrib/test_ssltransport.py
231
12
assert
test_socket_object_attributes
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate forever, we add t...
test_timeout
added
5157e427f70186a29ece0f37667a901015c0d725ceaed7ea626cb1a79595c26a
assert|test_socket_object_attributes|from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can ...
null
null
null
urllib3/urllib3
train
402
5aa09b434c8627729905ed7ff23bb45378996c2e
train
test/contrib/test_ssltransport.py
train
urllib3/urllib3:test/contrib/test_ssltransport.py
360
16
assert
test_tls_in_tls_tunnel
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate forever, we add t...
None
added
fa0f25ae784b5b53ec89850e1d0e229e031aa4adb3ece50ecd038dd6402a4c26
assert|test_tls_in_tls_tunnel|from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate...
null
null
null
urllib3/urllib3
train
402
5aa09b434c8627729905ed7ff23bb45378996c2e
train
test/contrib/test_ssltransport.py
train
urllib3/urllib3:test/contrib/test_ssltransport.py
385
12
assert
test_wrong_sni_hint
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate forever, we add t...
[ssl.SSLError, ssl.CertificateError]
added
658c29ad7af1385ce51f0bba5e500a84ab1f34a01f80a22afad2414106e39c2d
assert|test_wrong_sni_hint|from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate fo...
null
null
null
urllib3/urllib3
train
404
fa9aa58c80f03b1b4a92e522b7f609cb746609e1
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,345
12
assert
test_retry_ssl_error
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_us...
b"Success"
modified
1c498e82f80d481ecba26e71802ca29d47b4823b73d10e65472297a76409aa84
assert|test_retry_ssl_error|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urllib3.conne...
b"Success"
1,345
12
urllib3/urllib3
train
404
fa9aa58c80f03b1b4a92e522b7f609cb746609e1
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,450
17
pytest.raises
test_unknown_protocol
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_us...
ProtocolError)
modified
8b3555e37b9f26f450495e249e6cbc9fc223a036ee47bfb1807a68d311983ba0
pytest.raises|test_unknown_protocol|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urlli...
ProtocolError)
1,450
17
urllib3/urllib3
train
404
fa9aa58c80f03b1b4a92e522b7f609cb746609e1
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,649
16
assert
_test_okay_header_parsing
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_us...
record.msg
modified
14211ca7728d542488dc6bedc6edaff078be527df9b4c8206e9913ca32f0a173
assert|_test_okay_header_parsing|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urllib3....
record.msg
1,649
16
urllib3/urllib3
train
404
fa9aa58c80f03b1b4a92e522b7f609cb746609e1
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,848
12
assert
test_ignore_broken_pipe_errors
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_us...
"10"
modified
2f30326d8d5dbeb04f6cd8f111f53bc6c2e946f285a2f543c4f78695630b975f
assert|test_ignore_broken_pipe_errors|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.connection import HTTPConnection from urllib3.poolmanager import proxy_from_url from url...
"10"
1,848
12
urllib3/urllib3
train
405
d560e21dea87e9a24b94ea04873a68ac1a5f03aa
train
dummyserver/testcase.py
train
urllib3/urllib3:dummyserver/testcase.py
92
16
assert
import threading from contextlib import contextmanager import pytest from tornado import ioloop, web from urllib3.connection import HTTPConnection from dummyserver.server import ( SocketServerThread, run_tornado_app, run_loop_in_thread, DEFAULT_CERTS, HAS_IPV6, ) from dummyserver.handlers import ...
expected_value
modified
2acac41030048aa792fecc1a44bf70a37cec3695d9309be412810a7bc0a97f48
assert||import threading from contextlib import contextmanager import pytest from tornado import ioloop, web from urllib3.connection import HTTPConnection from dummyserver.server import ( SocketServerThread, run_tornado_app, run_loop_in_thread, DEFAULT_CERTS, HAS_IPV6, ) from dummyserver.handlers import TestingApp from...
expected_value
89
16
urllib3/urllib3
train
405
d560e21dea87e9a24b94ea04873a68ac1a5f03aa
train
dummyserver/testcase.py
train
urllib3/urllib3:dummyserver/testcase.py
93
8
assert
import threading from contextlib import contextmanager import pytest from tornado import ioloop, web from urllib3.connection import HTTPConnection from dummyserver.server import ( SocketServerThread, run_tornado_app, run_loop_in_thread, DEFAULT_CERTS, HAS_IPV6, ) from dummyserver.handlers import ...
header_titles
modified
274a55c164cf422f468960e4c17b8c18cf53fe9547bf901f18c1c2a749327e81
assert||import threading from contextlib import contextmanager import pytest from tornado import ioloop, web from urllib3.connection import HTTPConnection from dummyserver.server import ( SocketServerThread, run_tornado_app, run_loop_in_thread, DEFAULT_CERTS, HAS_IPV6, ) from dummyserver.handlers import TestingApp from...
header_titles
90
8
urllib3/urllib3
train
405
d560e21dea87e9a24b94ea04873a68ac1a5f03aa
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
44
12
assert
test_chunks
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import ( SocketDummyServerTestCase, consume_socket, ConnectionMarker, ) # Retry failed tests pytestmark = pytest.mark.fl...
self.buffer
modified
b17d8e686c0021cc3090186f41d13ca0b2fa8392dcb336cd8c30b177281f8077
assert|test_chunks|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import ( SocketDummyServerTestCase, consume_socket, ConnectionMarker, ) # Retry failed tests pytestmark = pytest.mar...
self.buffer
41
12
urllib3/urllib3
train
405
d560e21dea87e9a24b94ea04873a68ac1a5f03aa
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
50
16
assert
test_chunks
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import ( SocketDummyServerTestCase, consume_socket, ConnectionMarker, ) # Retry failed tests pytestmark = pytest.mark.fl...
hex(len(chunk))[2:].encode("utf-8")
modified
866d01941cc89bf0c9727aaaa5bc91e54f364935c991dff72440efacbf338c45
assert|test_chunks|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import ( SocketDummyServerTestCase, consume_socket, ConnectionMarker, ) # Retry failed tests pytestmark = pytest.mar...
hex(len(chunk))[2:].encode("utf-8")
47
16
urllib3/urllib3
train
405
d560e21dea87e9a24b94ea04873a68ac1a5f03aa
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
63
16
assert
_test_body
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import ( SocketDummyServerTestCase, consume_socket, ConnectionMarker, ) # Retry failed tests pytestmark = pytest.mark.fl...
body.endswith(b"\r\n0\r\n\r\n")
modified
85893b2f495a6755be3ad2ce7c49813faf5025251cb6021a2d74e4ccdcaedd7f
assert|_test_body|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import ( SocketDummyServerTestCase, consume_socket, ConnectionMarker, ) # Retry failed tests pytestmark = pytest.mark...
body.endswith(b"\r\n0\r\n\r\n")
60
16
urllib3/urllib3
train
405
d560e21dea87e9a24b94ea04873a68ac1a5f03aa
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
67
16
assert
_test_body
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import ( SocketDummyServerTestCase, consume_socket, ConnectionMarker, ) # Retry failed tests pytestmark = pytest.mark.fl...
len(bdata)
modified
e9bdae15ddf064f647c2ee397334a1053d5f4713cdfde64fe08d334d51b2980c
assert|_test_body|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import ( SocketDummyServerTestCase, consume_socket, ConnectionMarker, ) # Retry failed tests pytestmark = pytest.mark...
len(bdata)
64
16
urllib3/urllib3
train
406
382ab32f23795c44faae83b4e8b18a16fb605a0a
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
225
13
pytest.raises
test_disabled
import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, Rea...
MaxRetryError)
added
f23ab15a61db75d721b2a3eda1cc72932a7ed943688a524b84364eceb35d76a1
pytest.raises|test_disabled|import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetr...
null
null
null
urllib3/urllib3
train
406
382ab32f23795c44faae83b4e8b18a16fb605a0a
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
289
13
pytest.raises
test_retry_method_not_in_whitelist
import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, Rea...
ReadTimeoutError)
added
4d40acbdfb86a5e0b1d7100c5968a0c8cbf17ceccde38d5d2e27659ff9d8bc92
pytest.raises|test_retry_method_not_in_whitelist|import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, I...
null
null
null
urllib3/urllib3
train
406
382ab32f23795c44faae83b4e8b18a16fb605a0a
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
300
8
assert
test_retry_set_remove_headers_on_redirect
import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, Rea...
["x-api-secret"]
added
17be0cc77e3713f38fcecfabbccd07bdadd44d73913917d6da5b64f52579f715
assert|test_retry_set_remove_headers_on_redirect|import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, I...
null
null
null
urllib3/urllib3
train
406
382ab32f23795c44faae83b4e8b18a16fb605a0a
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
313
8
assert
test_parse_retry_after
import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, Rea...
expected
added
7028f9662fd861d82061198d6df62956f12404edfc60eb1a483c227fe0c80bba
assert|test_parse_retry_after|import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRe...
null
null
null
urllib3/urllib3
train
406
382ab32f23795c44faae83b4e8b18a16fb605a0a
train
test/test_retry_deprecated.py
train
urllib3/urllib3:test/test_retry_deprecated.py
291
13
pytest.raises
test_retry_method_not_in_whitelist
# This is a copy-paste of test_retry.py with extra asserts about deprecated options. It will be removed for v2. import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, Reques...
ReadTimeoutError)
added
96c17c1e5b13f418c830b94267682e652edeb2fd0b4ad5f57707be2e10dda795
pytest.raises|test_retry_method_not_in_whitelist|# This is a copy-paste of test_retry.py with extra asserts about deprecated options. It will be removed for v2. import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xra...
null
null
null
urllib3/urllib3
train
406
382ab32f23795c44faae83b4e8b18a16fb605a0a
train
test/test_retry_deprecated.py
train
urllib3/urllib3:test/test_retry_deprecated.py
297
8
assert
test_retry_default_remove_headers_on_redirect
# This is a copy-paste of test_retry.py with extra asserts about deprecated options. It will be removed for v2. import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, Reques...
["authorization"]
added
fcd539ee8383631871dc33dc93c97c312269fef0a5c0507f83ce3911e3464470
assert|test_retry_default_remove_headers_on_redirect|# This is a copy-paste of test_retry.py with extra asserts about deprecated options. It will be removed for v2. import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import...
null
null
null
urllib3/urllib3
train
406
382ab32f23795c44faae83b4e8b18a16fb605a0a
train
test/test_retry_deprecated.py
train
urllib3/urllib3:test/test_retry_deprecated.py
302
8
assert
test_retry_set_remove_headers_on_redirect
# This is a copy-paste of test_retry.py with extra asserts about deprecated options. It will be removed for v2. import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, Reques...
["x-api-secret"]
added
6cb39096c3decddea7925979444ba8ff9c75616d2c767934b7bada2c75e99fa4
assert|test_retry_set_remove_headers_on_redirect|# This is a copy-paste of test_retry.py with extra asserts about deprecated options. It will be removed for v2. import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xra...
null
null
null
urllib3/urllib3
train
406
382ab32f23795c44faae83b4e8b18a16fb605a0a
train
test/test_retry_deprecated.py
train
urllib3/urllib3:test/test_retry_deprecated.py
435
13
pytest.raises
test_retry_allowed_methods_and_method_whitelist_error
# This is a copy-paste of test_retry.py with extra asserts about deprecated options. It will be removed for v2. import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, Reques...
ValueError)
added
178b709cb483a87efc4ce0b72f9f61a5a2c9790c6c19e636b5ff2daebf746e47
pytest.raises|test_retry_allowed_methods_and_method_whitelist_error|# This is a copy-paste of test_retry.py with extra asserts about deprecated options. It will be removed for v2. import mock import pytest import warnings from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.s...
null
null
null
urllib3/urllib3
train
407
691679f738ae098ce024aeae90cfdd8013b8e1e7
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
373
8
assert
test_pool_manager_no_url_absolute_form
import socket import pytest from urllib3.poolmanager import PoolKey, key_fn_by_scheme, PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ClosedPoolError, LocationValueError from urllib3.util import retry, timeout from test import resolvesLocalhostFQDN class TestPoolManager(object): ...
False
added
b5201535698f180f551451a1b0167f518a67f4c3ba7e8cfa87d6d03764737836
assert|test_pool_manager_no_url_absolute_form|import socket import pytest from urllib3.poolmanager import PoolKey, key_fn_by_scheme, PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ClosedPoolError, LocationValueError from urllib3.util import retry, timeout from test import resolvesLoc...
null
null
null
urllib3/urllib3
train
407
691679f738ae098ce024aeae90cfdd8013b8e1e7
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
374
8
assert
test_pool_manager_no_url_absolute_form
import socket import pytest from urllib3.poolmanager import PoolKey, key_fn_by_scheme, PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ClosedPoolError, LocationValueError from urllib3.util import retry, timeout from test import resolvesLocalhostFQDN class TestPoolManager(object): ...
False
added
405173ec7ebc94f07ef0151c8d88afc47ef06731fb165c65769e5c5e7ad8393a
assert|test_pool_manager_no_url_absolute_form|import socket import pytest from urllib3.poolmanager import PoolKey, key_fn_by_scheme, PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ClosedPoolError, LocationValueError from urllib3.util import retry, timeout from test import resolvesLoc...
null
null
null
urllib3/urllib3
train
407
691679f738ae098ce024aeae90cfdd8013b8e1e7
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
84
12
assert
test_proxy_connect_retry
import pytest from .port_helpers import find_unused_port from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url from urllib3.util.retry import Retry from urllib3.exceptions import ( MaxRetryError, ProxyError, NewConnectionError, ) class TestProxyManager(object): @pytest.m...
isinstance(ei.value.reason.original_error, NewConnectionError)
added
277778b291c504ff9dced46533609b530ab2f3fdabc5d2e3c3f3fa6e0731a7c8
assert|test_proxy_connect_retry|import pytest from .port_helpers import find_unused_port from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url from urllib3.util.retry import Retry from urllib3.exceptions import ( MaxRetryError, ProxyError, NewConnectionError, ) class TestProxyManager(objec...
null
null
null
urllib3/urllib3
train
407
691679f738ae098ce024aeae90cfdd8013b8e1e7
train
test/test_ssltransport.py
train
urllib3/urllib3:test/test_ssltransport.py
230
12
assert
test_socket_object_attributes
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.util.ssltransport import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate forever, we...
test_timeout
modified
656f307cb3753abca25ae0c44afc9c62bf710eb6bf4482ab3364f05afe10bc66
assert|test_socket_object_attributes|from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.util.ssltransport import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socke...
test_timeout
230
12
urllib3/urllib3
train
407
691679f738ae098ce024aeae90cfdd8013b8e1e7
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
143
8
assert
test_get_host
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.uti...
expected_host
added
5d11914245cf692272315ad7b0f29f179684990cb68179429877d5fc330b1f67
assert|test_get_host|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make_headers, rewind_body, _FAILEDTE...
null
null
null
urllib3/urllib3
train
407
691679f738ae098ce024aeae90cfdd8013b8e1e7
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
797
8
assert_*
test_assert_header_parsing_no_error_on_multipart
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.uti...
client.parse_headers(header_msg))
added
3bf33af4738dc5030c124c9b1cfb18f26d56bfc4fa55dbf60096b3f279f639d7
assert_*|test_assert_header_parsing_no_error_on_multipart|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.request import...
null
null
null
urllib3/urllib3
train
407
691679f738ae098ce024aeae90cfdd8013b8e1e7
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
129
17
pytest.raises
test_https_proxy_securetransport_not_supported
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
ProxySchemeUnsupported)
added
ef406dce008e060b0a2769adae48a75e648fb56b4e5badff4fcabef247ed6d02
pytest.raises|test_https_proxy_securetransport_not_supported|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_addres...
null
null
null
urllib3/urllib3
train
407
691679f738ae098ce024aeae90cfdd8013b8e1e7
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
420
12
assert
test_https_headers_forwarding_for_https
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
"%s:%s" % ( self.https_host, self.https_port, )
added
f5219345972fe27941ad9c3a440156ed9ff93202234fddc1351bb12bea65ca3f
assert|test_https_headers_forwarding_for_https|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. impo...
null
null
null
urllib3/urllib3
train
409
9bc44598d90a39a6de665d37dc593905bd8563f8
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
368
8
assert
test_request_uri
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.connection import create_connection from urllib3.util.request import m...
expected_request_uri
modified
d98f4a8bd12c64880c07110411b38c18414b3919985d543e6ca069b4218b22cb
assert|test_request_uri|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.connection import create_connection from urllib3...
expected_request_uri
367
8
urllib3/urllib3
train
409
9bc44598d90a39a6de665d37dc593905bd8563f8
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
569
8
assert
test_split_first
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.connection import create_connection from urllib3.util.request import m...
expected
modified
7d3595f23cafea22b7a6a20710dd4a1408f0cbfeda12b6cf9cee59967eb0cc64
assert|test_split_first|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.connection import create_connection from urllib3...
expected
568
8
urllib3/urllib3
train
409
9bc44598d90a39a6de665d37dc593905bd8563f8
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
608
13
pytest.raises
test_invalid_timeouts
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.connection import create_connection from urllib3.util.request import m...
ValueError)
modified
dd8469ec98fe22f8902d3545d3cd601593166bcdae9adb283d4d76fe293aa306
pytest.raises|test_invalid_timeouts|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.connection import create_connection ...
ValueError)
607
13
urllib3/urllib3
train
409
9bc44598d90a39a6de665d37dc593905bd8563f8
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
682
8
assert
test_is_fp_closed_object_supports_closed
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.connection import create_connection from urllib3.util.request import m...
is_fp_closed(ClosedFile())
modified
c59a104b035befdfb8056d10510f55124728832c82b64596f83ea2eed7b10432
assert|test_is_fp_closed_object_supports_closed|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings, util from urllib3.util.connection import create...
is_fp_closed(ClosedFile())
681
8
urllib3/urllib3
train
410
dabe77d7d3f69c1b961826dabac28eda86699024
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
75
8
assert
test_dnsname_to_stdlib_leading_period
# -*- coding: utf-8 -*- import os import mock import pytest try: from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name except ImportError: pass def setup_module(): try: from url...
expected_result
added
f18c0e8185033411dda9518f46c43508646e108a90707fa0f0f62d08bc98f877
assert|test_dnsname_to_stdlib_leading_period|# -*- coding: utf-8 -*- import os import mock import pytest try: from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name except ImportError: pass def setup_module(): t...
null
null
null
urllib3/urllib3
train
410
dabe77d7d3f69c1b961826dabac28eda86699024
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
60
8
assert
test_access_ordering
import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container from urllib3.exceptions import InvalidHeader from urllib3.packages import six xrange = six.moves.xrange class TestLRUContainer(object): def test_maxsize(self): d = Container(...
[5, 6, 7, 8, 9]
modified
5095572bf80846d8e795b6e192e416bef9dc9d94333c2bdd3530e8b7acb0ef4a
assert|test_access_ordering|import pytest from urllib3._collections import HTTPHeaderDict from urllib3._collections import RecentlyUsedContainer as Container from urllib3.exceptions import InvalidHeader from urllib3.packages import six xrange = six.moves.xrange class TestLRUContainer(object): def test_maxsize(self): d ...
[5, 6, 7, 8, 9]
59
8
urllib3/urllib3
train
410
dabe77d7d3f69c1b961826dabac28eda86699024
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
573
8
assert
test_deflate_streaming
# -*- coding: utf-8 -*- import contextlib import re import socket import ssl import zlib from base64 import b64decode from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotlipy import mock import pytest import six from urllib3.exceptions import ( DecodeError, IncompleteRead, Inva...
b"f"
modified
e61e0a02bfb520731125102771aa15cbc4bc76ab64643668018a4e1d6d328da5
assert|test_deflate_streaming|# -*- coding: utf-8 -*- import contextlib import re import socket import ssl import zlib from base64 import b64decode from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotlipy import mock import pytest import six from urllib3.exceptions import ( DecodeError, Incom...
b"f"
576
8
urllib3/urllib3
train
410
dabe77d7d3f69c1b961826dabac28eda86699024
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
226
13
pytest.raises
test_disabled
import warnings import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.response import HTTPResponse fr...
MaxRetryError)
modified
76a15c5b3929315373c586addd55e4bf4b22514227e3ee462e9e1cd7044105a7
pytest.raises|test_disabled|import warnings import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.response import HTTPResponse ...
MaxRetryError)
225
13
urllib3/urllib3
train
410
dabe77d7d3f69c1b961826dabac28eda86699024
train
test/test_retry_deprecated.py
train
urllib3/urllib3:test/test_retry_deprecated.py
78
13
pytest.raises
test_retry_total_none
# This is a copy-paste of test_retry.py with extra asserts about deprecated options. It will be removed for v2. import warnings import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib...
MaxRetryError)
modified
9bbaa2f90542810837bdcde6fef5a5841c9dccc65681a6d1583cb1ec25d8603a
pytest.raises|test_retry_total_none|# This is a copy-paste of test_retry.py with extra asserts about deprecated options. It will be removed for v2. import warnings import mock import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) f...
MaxRetryError)
77
13
urllib3/urllib3
train
410
dabe77d7d3f69c1b961826dabac28eda86699024
train
test/test_ssltransport.py
train
urllib3/urllib3:test/test_ssltransport.py
196
12
assert
test_ssl_object_attributes
import platform import select import socket import ssl import sys import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util.ssltransport import SSLTransport # consume_socket can iterate forever, we add timeouts ...
tuple
added
22aae532a0e2476aab46088cb0dbaa4dfecb1b538a68701cab0bff7fc9090b1c
assert|test_ssl_object_attributes|import platform import select import socket import ssl import sys import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util.ssltransport import SSLTransport # consume_socket can it...
null
null
null
urllib3/urllib3
train
410
dabe77d7d3f69c1b961826dabac28eda86699024
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
698
16
assert
test_tls_protocol_name_of_socket
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
self.tls_protocol_name
modified
ee969b0e53e63d6a786958a506fe0be6e708e106dcf1dd07e9373d7ff75fdd05
assert|test_tls_protocol_name_of_socket|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_k...
self.tls_protocol_name
698
16
urllib3/urllib3
train
410
dabe77d7d3f69c1b961826dabac28eda86699024
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
272
17
pytest.raises
test_raise_on_status
import json from test import LONG_TIMEOUT import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError, URLSchemeUnknown from urllib3.poolmanage...
MaxRetryError)
added
35408558eaf6e63f1e3140065cc4d4ccddde6e51a53b530d221be95efc9837f5
pytest.raises|test_raise_on_status|import json from test import LONG_TIMEOUT import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError, URLSche...
null
null
null
urllib3/urllib3
train
412
b1f05ae1bf5003961c076e73c02c46b9575bff36
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
712
16
assert
test_connection_cleanup_on_read_timeout
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from...
pool.pool.qsize()
modified
1a10fe582df6b82d4eefacdb8fb7d0c230ea082df34e6bf9566aea1ea19fecfc
assert|test_connection_cleanup_on_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketDummyServ...
pool.pool.qsize()
712
16
urllib3/urllib3
train
412
b1f05ae1bf5003961c076e73c02c46b9575bff36
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
809
21
pytest.raises
test_connection_closed_on_read_timeout_preload_false
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from...
ReadTimeoutError)
modified
d46a301c5899e2389027ad941beb27a419317152b212763d209d18283b114fa5
pytest.raises|test_connection_closed_on_read_timeout_preload_false|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase im...
ReadTimeoutError)
809
21
urllib3/urllib3
train
412
b1f05ae1bf5003961c076e73c02c46b9575bff36
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
923
12
assert
test_release_conn_param_is_respected_after_timeout_retry
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from...
None
modified
087fd3a735a7d31c3f6ffd340c1773dd1caee2ec879625c949a73005263cc500
assert|test_release_conn_param_is_respected_after_timeout_retry|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase impor...
None
923
12
urllib3/urllib3
train
412
b1f05ae1bf5003961c076e73c02c46b9575bff36
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,707
12
assert
test_stream_none_unchunked_response_does_not_hang
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from...
list(r.stream(None))
modified
5a2bb51d0890650b1bda15cfe88a393b23cc08685e252c0081227b023e45131b
assert|test_stream_none_unchunked_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import Socke...
list(r.stream(None))
1,707
12
urllib3/urllib3
train
413
4fb7f3252b92bcc50cc8fa753f9dc6c147a6b2c0
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
741
12
assert
test_alpn_default
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
util.ALPN_PROTOCOLS[0]
added
a899024c563aab1394ad6a6c4757295e1ae28450915706fce746250284cb1e25
assert|test_alpn_default|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_password...
null
null
null
urllib3/urllib3
train
413
4fb7f3252b92bcc50cc8fa753f9dc6c147a6b2c0
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
781
16
assert
test_warning_for_certs_without_a_san
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
warn.called
added
046c46ca7e6dc1a3cc1336db8d75149838d36cf723d6f12571a071981dd35520
assert|test_warning_for_certs_without_a_san|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_conte...
null
null
null
urllib3/urllib3
train
414
4b0da49f8f1e485e34ddf6ffed93db4e452dc6a7
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
328
12
assert
test_invalid_common_name
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
"doesn't match" in str( e.value.reason ) or "certificate verify failed" in str(e.value.reason)
added
8525d4961394a81dd6e7021819ab6e4b3d112329fcb3887c7ca3a7a97b515df8
assert|test_invalid_common_name|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
null
null
null
urllib3/urllib3
train
414
4b0da49f8f1e485e34ddf6ffed93db4e452dc6a7
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
490
16
assert
_test_request
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
isinstance(cm.value.reason, SSLError)
added
9bdfb2c7776a06c7e6863aeb00b73cae4139c20aa12e879dccb94c686a502764
assert|_test_request|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_password, re...
null
null
null
urllib3/urllib3
train
414
4b0da49f8f1e485e34ddf6ffed93db4e452dc6a7
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
597
21
pytest.raises
test_enhanced_timeout
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
ConnectTimeoutError)
added
084a37ab891fe64cb9811f7162ca22cf600f7adb3059154f7a64e97368057061
pytest.raises|test_enhanced_timeout|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfi...
null
null
null
urllib3/urllib3
train
414
4b0da49f8f1e485e34ddf6ffed93db4e452dc6a7
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
821
12
assert
test_alpn_default
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
util.ALPN_PROTOCOLS[0]
added
bb841b379dbbe0af7f95543ffa5d0de963e6349afc8c07b18b5dd9c210952787
assert|test_alpn_default|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_password...
null
null
null
urllib3/urllib3
train
415
16b7b332fd1b84c2d465f11d17658c1e83d3f20f
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
44
12
assert
test_chunks
# -*- coding: utf-8 -*- import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry # Retry failed tests pytestmark = pytest.mark.flaky cl...
self.buffer
modified
c49f085b401fe72919b437f71c34fa488b13e42824baea29f89ea7c438ac5173
assert|test_chunks|# -*- coding: utf-8 -*- import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry # Retry failed tests pytestmark = pytest.mark.flaky ...
self.buffer
44
12
urllib3/urllib3
train
415
16b7b332fd1b84c2d465f11d17658c1e83d3f20f
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
51
16
assert
test_chunks
# -*- coding: utf-8 -*- import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry # Retry failed tests pytestmark = pytest.mark.flaky cl...
chunk.encode("utf-8")
modified
e6de42c26bbb42da4c6838a01a4a37f88fb10ef12e24d8c54fe48ee1bd193ff7
assert|test_chunks|# -*- coding: utf-8 -*- import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry # Retry failed tests pytestmark = pytest.mark.flaky ...
chunk.encode("utf-8")
51
16
urllib3/urllib3
train
415
16b7b332fd1b84c2d465f11d17658c1e83d3f20f
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
67
16
assert
_test_body
# -*- coding: utf-8 -*- import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry # Retry failed tests pytestmark = pytest.mark.flaky cl...
len(bdata)
modified
901cb2dc4a1473e8b80c6a13f3d018fdabe2768f337f4bcb3877c7757c4bf0cd
assert|_test_body|# -*- coding: utf-8 -*- import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry # Retry failed tests pytestmark = pytest.mark.flaky c...
len(bdata)
67
16
urllib3/urllib3
train
415
16b7b332fd1b84c2d465f11d17658c1e83d3f20f
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
69
16
assert
_test_body
# -*- coding: utf-8 -*- import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry # Retry failed tests pytestmark = pytest.mark.flaky cl...
b"0\r\n\r\n"
modified
fcfdde21fcbe547802785d9063f8fcbc9f7e48343f16abdb19927531427da3ec
assert|_test_body|# -*- coding: utf-8 -*- import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry # Retry failed tests pytestmark = pytest.mark.flaky c...
b"0\r\n\r\n"
69
16
urllib3/urllib3
train
415
16b7b332fd1b84c2d465f11d17658c1e83d3f20f
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
267
17
pytest.raises
test_request_method_body
# -*- coding: utf-8 -*- import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlyPy2 from threading import Event import mock import pytest import six from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning from dummyserver.test...
TypeError)
added
bc8e7749fde60f5cf1760990d3749d7585ef0037dfa744ef13142afbc7f0abe8
pytest.raises|test_request_method_body|# -*- coding: utf-8 -*- import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlyPy2 from threading import Event import mock import pytest import six from dummyserver.server import HAS_IPV6_AND_DNS,...
null
null
null
urllib3/urllib3
train
415
16b7b332fd1b84c2d465f11d17658c1e83d3f20f
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
789
12
assert
test_cleanup_on_connection_error
# -*- coding: utf-8 -*- import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlyPy2 from threading import Event import mock import pytest import six from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning from dummyserver.test...
http.pool.maxsize
added
c410cd7c914f4881d97da4a2691f6268e7d2c26a806cc0fbd4d03e113e00c1bb
assert|test_cleanup_on_connection_error|# -*- coding: utf-8 -*- import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlyPy2 from threading import Event import mock import pytest import six from dummyserver.server import HAS_IPV6_AND_DNS...
null
null
null
urllib3/urllib3
train
415
16b7b332fd1b84c2d465f11d17658c1e83d3f20f
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
961
12
assert
test_bytes_header
# -*- coding: utf-8 -*- import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlyPy2 from threading import Event import mock import pytest import six from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning from dummyserver.test...
request_headers
added
f839e66782086cadb4ecf0b8f165c38f5b00d1d0deb2a461b570f6f1963bddc2
assert|test_bytes_header|# -*- coding: utf-8 -*- import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlyPy2 from threading import Event import mock import pytest import six from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning...
null
null
null
urllib3/urllib3
train
415
16b7b332fd1b84c2d465f11d17658c1e83d3f20f
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
1,111
12
assert
test_retry_return_in_response
# -*- coding: utf-8 -*- import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlyPy2 from threading import Event import mock import pytest import six from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning from dummyserver.test...
( RequestHistory("GET", "/successful_retry", None, 418, None), )
added
9a514adb85ce5c81d85279485459e891a5b0f170aa1199d1221097e33f19d5e4
assert|test_retry_return_in_response|# -*- coding: utf-8 -*- import io import json import logging import socket import sys import time import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlyPy2 from threading import Event import mock import pytest import six from dummyserver.server import HAS_IPV6_AND_DNS, N...
null
null
null
urllib3/urllib3
train
416
5eb604ffa2e5304e1019d7111c59bc84583daf3f
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
551
17
pytest.raises
test_https_timeout
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
ConnectTimeoutError)
modified
15d3d65b30beb78df2282434c7677dd1a0283d1f407d1c842b2d86b8635f2b71
pytest.raises|test_https_timeout|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_...
ConnectTimeoutError)
549
17
urllib3/urllib3
train
416
5eb604ffa2e5304e1019d7111c59bc84583daf3f
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
672
16
assert
test_ssl_wrong_system_time
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
warning.message.args[0]
modified
e1472e1d394db187f541c6486b6fafcc48b824daa6b75aa21792fcac0c7ffcf8
assert|test_ssl_wrong_system_time|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile...
warning.message.args[0]
670
16
urllib3/urllib3
train
416
5eb604ffa2e5304e1019d7111c59bc84583daf3f
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
704
8
assert
test_set_cert_default_cert_required
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
ssl.CERT_REQUIRED
modified
71b0f45084544d7c7414015445af5aa725224b10986d359ebcfc5ea544a0d831
assert|test_set_cert_default_cert_required|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_contex...
ssl.CERT_REQUIRED
702
8
urllib3/urllib3
train
416
5eb604ffa2e5304e1019d7111c59bc84583daf3f
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
823
12
assert
test_alpn_default
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
util.ALPN_PROTOCOLS[0]
modified
51e7aa2bbfc99816d23d9dc667b910c9549cf931076f29300adf7411d9e45b39
assert|test_alpn_default|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_password...
util.ALPN_PROTOCOLS[0]
821
12
urllib3/urllib3
train
416
5eb604ffa2e5304e1019d7111c59bc84583daf3f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,582
12
assert
test_request_headers_are_sent_in_the_original_order
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from...
request_headers
added
bd5f2dbf17a9135de6aa4a1a14a184a6834db9a4670c84badb71aea99eba48e2
assert|test_request_headers_are_sent_in_the_original_order|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import Soc...
null
null
null
urllib3/urllib3
train
416
5eb604ffa2e5304e1019d7111c59bc84583daf3f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,750
12
assert
test_stream_none_unchunked_response_does_not_hang
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from...
list(r.stream(None))
added
e0ebf72b9c8d3e1ba081c535c07e2f785f2adbeafa844df1605c506bec5838e8
assert|test_stream_none_unchunked_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import Socke...
null
null
null
urllib3/urllib3
train
416
5eb604ffa2e5304e1019d7111c59bc84583daf3f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,887
12
assert
test_ignore_broken_pipe_errors
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from...
b"xxxxxxxxxx"
added
65bca10b4e33647333e426f6806978a109fb1fdf1f9e3a28e4a8fe90149133cf
assert|test_ignore_broken_pipe_errors|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketDummyServerTestCas...
null
null
null
urllib3/urllib3
train
416
5eb604ffa2e5304e1019d7111c59bc84583daf3f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,924
16
assert
test_multipart_assert_header_parsing_no_defects
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from...
"multipart/mixed; boundary=36eeb8c4e26d842a"
added
8f13208ba84cde55e043c039bebaf4277f95036e8b47e3b496455ff929b72757
assert|test_multipart_assert_header_parsing_no_defects|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from dummyserver.server import ( DEFAULT_CA, DEFAULT_CERTS, encrypt_key_pem, get_unreachable_address, ) from dummyserver.testcase import SocketD...
null
null
null
urllib3/urllib3
train
417
6dc3b68b944fa242bc7a91388c16ca9322c729fd
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
206
12
assert
test_client_encrypted_key_requires_password
import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ssl_context_keyfile_p...
isinstance(e.value.reason, SSLError)
modified
e66e11ae353a791edf647e848f990a0ff84205b55504712c630d76ed772f1cfb
assert|test_client_encrypted_key_requires_password|import datetime import json import logging import os.path import shutil import ssl import sys import tempfile import warnings from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notOpenSSL098, notSecureTransport, onlyPy279OrNewer, requires_network, requires_ss...
str(e.value)
209
12