summaryrefslogtreecommitdiff
path: root/cherrypy/test/helper.py
Commit message (Collapse)AuthorAgeFilesLines
* In _join_daemon, don't use os.wait(). Instead, use waitpid, harmonizing the ↵Jason R. Coombs2018-09-091-17/+3
| | | | Unix and Windows approaches, and fixes #1741.
* Remove reliance on sixJason R. Coombs2018-09-021-3/+2
|
* Use bytes literals where appropriatev14.0.0Jason R. Coombs2018-02-041-1/+1
|
* Use cheroot 5.9 for webtest module.Jason R. Coombs2017-11-161-1/+2
|
* Regarding E305, honor the style guide rather than suppressing errors.Jason R. Coombs2017-10-291-1/+3
|
* Honor E731 linter warningJason R. Coombs2017-10-281-1/+2
|
* Mark docstrings with slash escaping as raw str (PR #1610 by @scop)Ville Skyttä2017-07-101-1/+1
| | | | * https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior (Python 3.6 invalid escape sequence deprecation)
* Remove Python 2.6 compatibility behavior.Jason R. Coombs2017-07-081-1/+1
|
* Replace iteritems with six usage.Jason R. Coombs2017-07-081-2/+3
|
* Eliminate nose-testconfig completelySviatoslav Sydorenko2017-04-231-31/+8
|
* Eliminate nose from test.helperSviatoslav Sydorenko2017-04-231-3/+3
|
* PEP8fy codebase: eliminated E305 flake8 errorSviatoslav Sydorenko2017-03-111-1/+1
|
* Rely on portend for port checks. Fixes #1332.Jason R. Coombs2017-01-191-2/+3
|
* Convert cherryd script into console_scriptSviatoslav Sydorenko2017-01-101-1/+20
| | | | | | Also: * remove ``cherrypy/cherryd`` * run cherryd as cherrypy.__main__ module to support Python 2.6
* Rely on backports.unittest_mock (and its pytest plugin) to supply mock.Jason R. Coombs2016-12-261-5/+0
|
* Make mock module be always accessed through helperSviatoslav Sydorenko2016-11-261-0/+5
|
* Fix E265: block comment should start with '# 'Sviatoslav Sydorenko2016-09-191-2/+1
|
* Drop deprecated cherrypy._cpcompat_subprocessSviatoslav Sydorenko2016-09-171-6/+1
|
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-081-34/+34
| | | | pre-commit run double-quote-string-fixer --all-files
* Fix E402 in test/helperSviatoslav Sydorenko2016-09-081-8/+7
|
* Drop conquer option from cherrypy.test.helperSviatoslav Sydorenko2016-08-311-10/+0
| | | | Close #1484
* Ensure conf is text before writing it.Jason R. Coombs2016-08-211-1/+2
|
* Use io module to write text to a fileJason R. Coombs2016-08-211-3/+3
|
* Use decorators where appropriate.Jason R. Coombs2016-08-031-3/+3
|
* Use the preferred name text_or_bytes to avoid conflation with 'basestring' ↵Jason R. Coombs2016-07-241-3/+3
| | | | which has no equivalent on Python 3.
* Indicate that test fails intermittently. If nose had an 'xfail' like pytest, ↵Jason R. Coombs2016-05-101-1/+4
| | | | I'd use that, but it seems it doesn't. Fixes #1420.
* Put main test in body at top level.Jason R. Coombs2016-05-101-3/+5
|
* Add new argument to openURL for the testsuite to be able toJoel Rivera2016-03-031-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raise subclasses of socket.error (since python3.3 OSError) instead of retrying. This fixes the KeyboardError problem for 3.5 by specifying that subclasses of BadStatusLine can be raised. The longer explanation of the fix: From python3.5 a new exception is retuned when the connection ends abruptly: http.client.RemoteDisconnected RemoteDisconnected is a subclass of: (ConnectionResetError, http.client.BadStatusLine) and ConnectionResetError is an indirect subclass of: OSError From python 3.3 an up socket.error is an alias to OSError following PEP-3151, therefore http.client.RemoteDisconnected is considered a socket.error. raise_subcls specifies the classes that are not going to be considered as a socket.error for the retries. Given that RemoteDisconnected is part BadStatusLine we can use the same call for all py3 versions without sideffects. python < 3.5 will raise directly BadStatusLine which is not a subclass for socket.error/OSError. Fixes issue #1406.
* Removing useless comparisonGustavo Picon2015-01-241-1/+1
|
* Monkeypatch the test sorter to always run test_gc last in each suite.Gustavo Picon2015-01-241-4/+15
| | | | The previous method introduced in 12f77856280c doesn't work with the unittest subclassed test suites cherrypy uses.
* Fix for recent commits which were causing a number of tests to fail in Python 3.Allan Crooks2014-04-161-4/+5
|
* Rather than trying to workaround which symbol can or cannot be imported, I ↵Lawouach2014-02-061-1/+6
| | | | thought it'd be better to simply import the module in the helper since it's only used there. I also prevent it to be distributed with Python 2.7 as it doesn't need to
* More PEP8 work.Gustavo Picon2014-01-121-8/+13
|
* Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-121-13/+32
| | | | | --HG-- branch : autopep8
* Restore pid-in-file behavior for daemonized processesJason R. Coombs2012-12-261-0/+23
| | | | | --HG-- branch : cherrypy-3.2.x
* Use subprocess to manage the process and pid. Fixes #1198.Jason R. Coombs2012-12-261-21/+4
| | | | | --HG-- branch : cherrypy-3.2.x
* Adding subprocess module from Python 2.7.3 and use that in the test helper. ↵Jason R. Coombs2012-12-261-3/+3
| | | | | | | Fixes #1196. --HG-- branch : cherrypy-3.2.x
* Use subprocess module (if available). Works around #1196 on Python 2.4+.Jason R. Coombs2012-12-261-4/+8
| | | | | --HG-- branch : cherrypy-3.2.x
* Re-saved with excess whitespace removed. Removed unused import.Jason R. Coombs2012-03-221-35/+35
| | | | | --HG-- branch : cherrypy-3.2.x
* A couple of Python 2.3 fixescherrypy-3.2.2Robert Brewer2011-10-181-2/+3
|
* Fixed #1087 (PEP-3333 compliance: Unicode response headers). Also some ↵Robert Brewer2011-10-131-0/+2
| | | | touch-ups to prevent refleaks.
* Use an arbitrary high port (54583) instead of a common lower port (8080) for ↵Joseph Tate2011-09-231-1/+1
| | | | running tests
* Bye bye, py2/3.Robert Brewer2011-07-021-0/+491
|
* Bringing python3 back into trunk with its own py3 folder; what was in trunk ↵trunkRobert Brewer2011-02-251-476/+0
| | | | goes in the py2 folder, and we can use a single setup.py to install either, depending on the version of Python that runs setup.py install.
* trunk: sync with python3Robert Brewer2011-02-251-2/+4
|
* Compat fixes for Python 2.3Robert Brewer2011-02-241-6/+5
|
* Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.Robert Brewer2011-02-241-6/+7
|
* trunk sync with python3Robert Brewer2011-02-231-3/+3
|
* New test/modfastcgi.py (I couldn't get mod_fcgid working well with our test ↵Robert Brewer2011-02-221-10/+17
| | | | suite on nix).
* testAdditionalServers was causing test_states to hang because the former did ↵Robert Brewer2011-02-211-2/+2
| | | | not stop() all its servers.