Source

CherryPy / cherrypy / test / test_states.py

Author Commit Message Labels Comments Date
Jason R. Coombs avatarJason R. Coombs
Added test to simulate failure reported in #1100.
Branches
cherrypy-3.2.x
Jason R. Coombs avatarJason R. Coombs
Skip a test that consistently fails on Windows due to the implementation of os.kill (Python 2.7 and later).
Branches
cherrypy-3.2.x
Jason R. Coombs avatarJason R. Coombs
Extracted method for skipping when the necessary signal and kill method aren't present.
Branches
cherrypy-3.2.x
Jason R. Coombs avatarJason R. Coombs
Re-saved with excess whitespace removed. Removed unused import.
Branches
cherrypy-3.2.x
Robert Brewer avatarRobert Brewer
Better message when test_states fails due to slow autoreload
Robert Brewer avatarRobert Brewer
Bye bye, py2/3.
Robert Brewer avatarRobert Brewer
Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.
Robert Brewer avatarRobert Brewer
Removed test.py etc.
Default avatar Joseph Tate
Convert the tests to use nose instead of our own runner. This strips out much coverage and profiling (handled by nose) and lets you focus on writing tests.
Robert Brewer avatarRobert Brewer
A couple syncs with python3.
Robert Brewer avatarRobert Brewer
Removed py3print.
Default avatar Lakin Wecker
trunk - oops - these prints were mussed up.
Default avatar Lakin Wecker
trunk - adding a py3util module that will normalize as many differences between this branch and the python3 branch as it can. First it includes a py3print call who's signature matches that of print in python3. Also removed a few byte strings of the form b''
Robert Brewer avatarRobert Brewer
A stray b''.
Default avatar Lakin Wecker
trunk - porting the fixes to test_states from r2290.
Robert Brewer avatarRobert Brewer
Fixed a buglet in test_states.
Robert Brewer avatarRobert Brewer
Rework of test suite to start the engine once per module, and only for modules that have a 'setup_server' function. This allows us to include modules which do not need to start a server in the normal test.py testList and exercise them at every full run. See, for example, that test_bus and test_states are now included.
Robert Brewer avatarRobert Brewer
New helper.CPProcess class (moved from test_states), plus a bugfix to allow Ctrl-C to stop CP when running tests in --server mode.
Robert Brewer avatarRobert Brewer
Fixed sig handler unsubscribe test for Unix, plus an odd race condition in autoreload.
Robert Brewer avatarRobert Brewer
Test and fix for #826 (SignalHandler needs an unsubscribe). Need nix testing.
Robert Brewer avatarRobert Brewer
Fixed test_states for nix.
Robert Brewer avatarRobert Brewer
Fix for #828 (CherryPy should exit on SIGHUP if not daemonized). The tests need to be exercised on Unix.
Robert Brewer avatarRobert Brewer
Some test_states love. Also, cherryd grew an --import option.
Robert Brewer avatarRobert Brewer
Moved all bus plugins onto the engine object itself, and fixed a couple bus details along the way.
Robert Brewer avatarRobert Brewer
Removing the last call to server.quickstart (which is deprecated).
Default avatar Lakin Wecker
Parent processes in Daemonizer should not even attempt to clean up after themselves, so use os._exit(0) instead of sys.exit(0). Updated tests and documentation to reflect the fact that if the first forkin Daemonizer completes, the process return code will always be 0.
Robert Brewer avatarRobert Brewer
Fix for #751 (logging: Python file objects are not thread-safe). Whew. Finally got all the bus operations where I want em:
Robert Brewer avatarRobert Brewer
Cosmetics.
Tags
cherrypy-3.1.0beta2
Robert Brewer avatarRobert Brewer
Trunk fix for #752 (Return cherrypy.server to a single-server model):
Default avatar Lakin Wecker
Adding a unit test which exposes a bug whereby CP exit codes are mistakenly set to 0 by Daemonizer even if there are pending startup errors waiting to be raised.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.