Linux id-dci-web1412.main-hosting.eu 5.14.0-611.20.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 14 06:35:04 EST 2026 x86_64
LiteSpeed
: 2a02:4780:6:1512:0:19fc:adf1:2 | : 216.73.216.85
Cant Read [ /etc/named.conf ]
8.1.34
u435990001
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
opt /
gsutil /
third_party /
urllib3 /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
contrib
[ DIR ]
drwxr-xr-x
with_dummyserver
[ DIR ]
drwxr-xr-x
__init__.py
10.11
KB
-rw-r--r--
conftest.py
12.06
KB
-rw-r--r--
port_helpers.py
6.08
KB
-rw-r--r--
test_collections.py
13.97
KB
-rw-r--r--
test_compatibility.py
692
B
-rw-r--r--
test_connection.py
12.46
KB
-rw-r--r--
test_connectionpool.py
22.24
KB
-rw-r--r--
test_exceptions.py
2.11
KB
-rw-r--r--
test_fields.py
4.33
KB
-rw-r--r--
test_filepost.py
3.66
KB
-rw-r--r--
test_no_ssl.py
978
B
-rw-r--r--
test_poolmanager.py
18.36
KB
-rw-r--r--
test_proxymanager.py
3.57
KB
-rw-r--r--
test_queue_monkeypatch.py
761
B
-rw-r--r--
test_response.py
56.37
KB
-rw-r--r--
test_retry.py
16.32
KB
-rw-r--r--
test_ssl.py
7.63
KB
-rw-r--r--
test_ssltransport.py
20.63
KB
-rw-r--r--
test_util.py
42.74
KB
-rw-r--r--
test_wait.py
5.86
KB
-rw-r--r--
tz_stub.py
1.16
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_exceptions.py
from __future__ import annotations import pickle from email.errors import MessageDefect from test import DUMMY_POOL import pytest from urllib3.connection import HTTPConnection from urllib3.connectionpool import HTTPConnectionPool from urllib3.exceptions import ( ClosedPoolError, ConnectTimeoutError, EmptyPoolError, HeaderParsingError, HostChangedError, HTTPError, LocationParseError, MaxRetryError, NewConnectionError, ReadTimeoutError, ) class TestPickle: @pytest.mark.parametrize( "exception", [ HTTPError(None), MaxRetryError(DUMMY_POOL, "", None), LocationParseError(""), ConnectTimeoutError(None), HTTPError("foo"), HTTPError("foo", IOError("foo")), MaxRetryError(HTTPConnectionPool("localhost"), "/", None), LocationParseError("fake location"), ClosedPoolError(HTTPConnectionPool("localhost"), ""), EmptyPoolError(HTTPConnectionPool("localhost"), ""), HostChangedError(HTTPConnectionPool("localhost"), "/", 0), ReadTimeoutError(HTTPConnectionPool("localhost"), "/", ""), ], ) def test_exceptions(self, exception: Exception) -> None: result = pickle.loads(pickle.dumps(exception)) assert isinstance(result, type(exception)) class TestFormat: def test_header_parsing_errors(self) -> None: hpe = HeaderParsingError([MessageDefect("defects")], "unparsed_data") assert "defects" in str(hpe) assert "unparsed_data" in str(hpe) class TestNewConnectionError: def test_pool_property_deprecation_warning(self) -> None: err = NewConnectionError(HTTPConnection("localhost"), "test") with pytest.warns(DeprecationWarning) as records: err_pool = err.pool assert err_pool is err.conn msg = ( "The 'pool' property is deprecated and will be removed " "in urllib3 v2.1.0. Use 'conn' instead." ) record = records[0] assert isinstance(record.message, Warning) assert record.message.args[0] == msg
Close