Commits

Robert Brewer  committed 27d0463

Cosmetics.

  • Participants
  • Parent commits dfe0b32
  • Tags cherrypy-3.1.0beta2

Comments (0)

Files changed (3)

File 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
 

File 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)

File 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()