14 Commits

Author SHA1 Message Date
kennethreitz 63e18ff2cc working! 2019-04-19 10:39:50 -04:00
kennethreitz 0e4eb5683b refactor 2019-04-18 15:39:34 -04:00
kennethreitz 8a1baaf47b white 2018-03-15 06:56:20 -04:00
kennethreitz 9cea8ce09d black
https://github.com/ambv/black
2018-03-14 17:28:51 -04:00
lovedboy d587533446 little modification in consume_socket_content 2016-10-21 16:55:58 +08:00
Nate Prewitt 15a3869006 making module docstrings and coding comments consistent 2016-07-19 14:51:14 -06:00
Brett Higgins b6d6894f53 Allow graceful interruption of testserver.Server
So that failing tests don't cause the server thread to hang
indefinitely, waiting for connections that will never come.

Rationale for suppressing error/traceback from interrupted
_accept_connection in testserver.Server:
https://gist.github.com/brettdh/b6e741227b2297f19d2118077f14dfa5

* Move server socket close to just before join

This way it handles the no-connections, no-exceptions case
as well as the exception case. If the server thread doesn't
exit by itself within 5 seconds of the context manager exit,
the accept will be interrupted.

* Address feedback

- pytest.raises rather than except:pass
- Move socket create/bind back to run()
- Timeout on accepting connections
2016-05-17 10:45:12 -05:00
Brett Higgins 4bf8866172 Add 'all' proxy selection to select_proxy
It seems it's necessary both in pulling all_proxy from the environment
(rebuild_proxies) and deciding which proxy to use (select_proxy).

Also added new functional test.
2016-05-13 15:30:38 -04:00
Braulio Valdivielso Martínez 634b2beb39 Fixed indenting issues 2016-04-11 20:03:23 +02:00
Braulio Valdivielso Martínez b473440cc1 Fix tests in python 3 2016-03-07 18:33:06 +01:00
Braulio Valdivielso Martínez 66c52c3ce0 Leave two lines of separation between top level definitions 2016-03-05 23:11:31 +01:00
Braulio Valdivielso Martínez 0d1a779030 Fixed style issues 2016-03-04 19:33:58 +01:00
Braulio Valdivielso Martínez 75a9a981b5 Removed unnecessary files 2016-03-03 22:00:08 +01:00
Braulio Valdivielso Martínez ca35c847a2 Moved testserver to tests/ 2016-03-03 21:52:59 +01:00