summaryrefslogtreecommitdiff
path: root/test/test_exceptions.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix flaky DeprecationWarning testsHasan Ramezani2021-06-191-2/+2
|
* Add type hints to urllib3.contrib.socks Hasan Ramezani2021-06-181-0/+16
|
* Remove support for Python 2 and 3.5Hugo van Kemenade2020-11-151-2/+2
| | | | | | | | - Upgrades syntax to Python 3.6+ with f-strings - Removes most usage of six - Removes documentation relevant to Python 2 - Removes universal wheel config - Removes mock dependency for testing
* Sort imports with 'isort'Quentin Pradet2020-10-011-6/+6
|
* Auto formatting using blackRatan Kulshreshtha2019-05-251-22/+31
|
* Make the check in test_exceptions.py a little strongerAlex Chan2017-06-051-1/+2
|
* Rewrite test_exceptions.py to be pytest-styleAlex Chan2017-06-051-38/+22
|
* E303 Too many blank linesSeth Michael Larson2017-01-231-1/+0
|
* Style fixes.Andrey Petrov2015-06-121-2/+2
|
* use exceptions for error signallingThomas Weißschuh2015-06-041-1/+9
|
* Cleanup exception testing.Andrey Petrov2014-02-281-17/+28
|
* Rename RequestTimeoutError to ReadTimeoutErrorKevin Burke2013-08-241-2/+2
|
* Add an EnhancedHTTPConnection classKevin Burke2013-08-181-3/+5
| | | | | | | | | We need to override the default connect() method so we can set our own connect timeout. Also adds two new error classes, ConnectTimeoutError and RequestTimeoutError Adds a bunch of tests that total, request and connect timeouts do what they are expected to do.
* Make RequestException unpickleable and provide complete cycle ↵Bryce Boe2013-04-271-15/+18
| | | | (pickle/unpickle) tests.
* Make HostChangedError a subclass of RequestError.Bryce Boe2013-04-271-3/+6
|
* Add RequestError subclass to PoolError.Bryce Boe2013-04-261-2/+10
| | | | | | | | The former PoolError `__reduce__` method was broken as it assumed the `url` attribute was set, when in fact it was not. As per issue #174, this commit creates a `RequestError` subclass of `PoolError` and makes `MaxRetryError` and TimeoutError` a subclass of `RequestError`.
* For shazow/urllib3#92: Adding socket error descriptions to MaxRetryErrors, ↵Andrew Stone2012-11-051-2/+2
| | | | and retrying on every socket error.
* Exceptions with None pass, but fail with real objects still.Andrey Petrov2012-09-121-2/+7
|
* Adding a test which tries to pickle some exceptions. (Re: #100)Andrey Petrov2012-09-121-0/+14