summaryrefslogtreecommitdiff
path: root/tests/test_testserver.py
Commit message (Collapse)AuthorAgeFilesLines
* skip for nowtravis2Kenneth Reitz2017-05-281-0/+1
|
* todoKenneth Reitz2017-05-281-0/+1
|
* Spelling fixesVille Skyttä2016-07-261-1/+1
|
* Merge pull request #3429 from nateprewitt/docstring_cleanupKenneth Reitz2016-07-201-0/+2
|\ | | | | Docstring cleanup
| * making module docstrings and coding comments consistentNate Prewitt2016-07-191-0/+2
| |
* | adding in pep8 fixesNate Prewitt2016-07-201-11/+13
|/
* Allow graceful interruption of testserver.ServerBrett Higgins2016-05-171-0/+23
| | | | | | | | | | | | | | | | | | | | | 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
* Fix tests in python 3Braulio Valdivielso Martínez2016-03-071-9/+9
|
* Added docstrings to tests in test_testserver.pyBraulio Valdivielso Martínez2016-03-051-0/+9
|
* Compare response bodies with unicode stringsBraulio Valdivielso Martínez2016-03-051-3/+3
|
* Changed tests to use socket.sendall instead of socket.sendBraulio Valdivielso Martínez2016-03-051-8/+8
|
* Moved TestTestServer to its own fileBraulio Valdivielso Martínez2016-03-041-0/+128