Robert Brewer avatar Robert Brewer committed 27d0463

Cosmetics.

Comments (0)

Files changed (3)

cherrypy/restsrv/plugins.py

                         # The file has been deleted or modified.
                         self.bus.log("Restarting because %s changed." % filename)
                         self.thread.cancel()
+                        self.bus.log("Stopped thread %r." % self.thread.getName())
                         self.bus.restart()
                         return
 

cherrypy/test/test_states.py

             helper.CPTestRunner.run(daemon_suite)
         else:
             tr = pyconquer.Logger("cherrypy")
-            tr.out = open(os.path.join(os.path.dirname(__file__), "state.log"), "wb")
+            tr.out = open(os.path.join(os.path.dirname(__file__), "test_states_conquer.log"), "wb")
             try:
                 tr.start()
                 helper.CPTestRunner.run(suite)

cherrypy/test/test_states_demo.py

     # and then immediately call getPage without getting 503.
     cherrypy.config.update(conf)
     cherrypy.tree.mount(Root(), config={'global': conf})
-    cherrypy.engine.start()
+    try:
+        cherrypy.engine.start()
+    except ZeroDivisionError:
+        sys.exit(1)
     cherrypy.engine.block()
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.