cherrypy / cherrypy

Compare 98929b5 ... +13 ... a7983fe

Coverage Reach
test/test_conn.py test/test_core.py test/test_request_obj.py test/test_session.py test/helper.py test/test_tools.py test/test_static.py test/test_objectmapping.py test/test_states.py test/test_caching.py test/test_dynamicobjectmapping.py test/benchmark.py test/test_http.py test/test_encoding.py test/test_bus.py test/test_config.py test/logtest.py test/test_logging.py test/test_iterator.py test/test_tutorials.py test/test_misc_tools.py test/test_xmlrpc.py test/test_wsgiapps.py test/test_proxy.py test/test_auth_basic.py test/test_json.py test/test_auth_digest.py test/test_virtualhost.py test/test_wsgi_ns.py test/test_etags.py test/modpy.py test/test_config_server.py test/modwsgi.py test/modfastcgi.py test/test_wsgi_unix_socket.py test/modfcgid.py test/test_routes.py test/test_params.py test/test_refleaks.py test/_test_states_demo.py test/sessiondemo.py test/test_mime.py test/test_sessionauthenticate.py test/test_wsgi_vhost.py test/test_native.py test/_test_decorators.py test/test_httputil.py test/__init__.py test/checkerdemo.py test/test_plugins.py test/webtest.py lib/sessions.py lib/cptools.py lib/encoding.py lib/cpstats.py lib/caching.py lib/httputil.py lib/reprconf.py lib/static.py lib/auth_digest.py lib/covercp.py lib/gctools.py lib/profiler.py lib/__init__.py lib/auth_basic.py lib/jsontools.py lib/xmlrpcutil.py lib/locking.py process/plugins.py process/wspbus.py process/servers.py process/win32.py process/__init__.py _cpreqbody.py _cprequest.py _cpdispatch.py _cpwsgi.py _cptools.py _cperror.py _cpchecker.py _cpmodpy.py _cplogging.py tutorial/tut10_http_errors.py tutorial/tut09_files.py tutorial/tut04_complex_site.py tutorial/tut05_derived_objects.py tutorial/tut08_generators_and_yield.py tutorial/tut06_default_method.py tutorial/tut03_get_and_post.py tutorial/tut07_sessions.py tutorial/tut02_expose_methods.py tutorial/tut01_helloworld.py tutorial/__init__.py __init__.py _helper.py _cptree.py _cpserver.py _cpnative_server.py _cpconfig.py daemon.py _cpwsgi_server.py scaffold/__init__.py _cpcompat.py _json.py __main__.py

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 3 of 9 files from the diff.

@@ -178,7 +178,7 @@
Loading
178 178
179 179
        import threading
180 180
        t = threading.Thread(target=self._start_http_thread)
181 -
        t.setName('HTTPServer ' + t.getName())
181 +
        t.name = 'HTTPServer ' + t.name
182 182
        t.start()
183 183
184 184
        self.wait()

@@ -356,13 +356,13 @@
Loading
356 356
            # implemented as a windows service and in any other case
357 357
            # that another thread executes cherrypy.engine.exit()
358 358
            if (
359 -
                    t != threading.currentThread() and
359 +
                    t != threading.current_thread() and
360 360
                    not isinstance(t, threading._MainThread) and
361 361
                    # Note that any dummy (external) threads are
362 362
                    # always daemonic.
363 363
                    not t.daemon
364 364
            ):
365 -
                self.log('Waiting for thread %s.' % t.getName())
365 +
                self.log('Waiting for thread %s.' % t.name)
366 366
                t.join()
367 367
368 368
        if self.execv:
@@ -570,7 +570,7 @@
Loading
570 570
            self.wait(states.STARTED)
571 571
            func(*a, **kw)
572 572
        t = threading.Thread(target=_callback, args=args, kwargs=kwargs)
573 -
        t.setName('Bus Callback ' + t.getName())
573 +
        t.name = 'Bus Callback ' + t.name
574 574
        t.start()
575 575
576 576
        self.start()

@@ -366,7 +366,7 @@
Loading
366 366
        # "The general problem with making fork() work in a multi-threaded
367 367
        #  world is what to do with all of the threads..."
368 368
        # So we check for active threads:
369 -
        if threading.activeCount() != 1:
369 +
        if threading.active_count() != 1:
370 370
            self.bus.log('There are %r active threads. '
371 371
                         'Daemonizing now may cause strange failures.' %
372 372
                         threading.enumerate(), level=30)
@@ -552,7 +552,7 @@
Loading
552 552
            if self.thread is None:
553 553
                self.thread = BackgroundTask(self.frequency, self.callback,
554 554
                                             bus=self.bus)
555 -
                self.thread.setName(threadname)
555 +
                self.thread.name = threadname
556 556
                self.thread.start()
557 557
                self.bus.log('Started monitor thread %r.' % threadname)
558 558
            else:
@@ -565,8 +565,8 @@
Loading
565 565
            self.bus.log('No thread running for %s.' %
566 566
                         self.name or self.__class__.__name__)
567 567
        else:
568 -
            if self.thread is not threading.currentThread():
569 -
                name = self.thread.getName()
568 +
            if self.thread is not threading.current_thread():
569 +
                name = self.thread.name
570 570
                self.thread.cancel()
571 571
                if not self.thread.daemon:
572 572
                    self.bus.log('Joining %r' % name)
@@ -692,7 +692,7 @@
Loading
692 692
                                     filename)
693 693
                        self.thread.cancel()
694 694
                        self.bus.log('Stopped thread %r.' %
695 -
                                     self.thread.getName())
695 +
                                     self.thread.name)
696 696
                        self.bus.restart()
697 697
                        return
698 698

Learn more Showing 13 files with coverage changes found.

Changes in cherrypy/process/win32.py
-64
+64
Loading file...
Changes in cherrypy/lib/gctools.py
-6
+6
Loading file...
Changes in cherrypy/test/test_static.py
-8
+8
Loading file...
Changes in cherrypy/test/test_states.py
-6
+6
Loading file...
Changes in cherrypy/test/modwsgi.py
-1
+1
Loading file...
Changes in cherrypy/daemon.py
-1
+1
Loading file...
Changes in cherrypy/process/wspbus.py
-2
+2
Loading file...
Changes in cherrypy/test/logtest.py
-1
+1
Loading file...
Changes in cherrypy/test/helper.py
-2
+2
Loading file...
Changes in cherrypy/lib/cptools.py
-2
+2
Loading file...
Changes in cherrypy/test/benchmark.py
-1
+1
Loading file...
Changes in cherrypy/lib/static.py
-1
+1
Loading file...
Changes in cherrypy/process/plugins.py
-2
+2
Loading file...
Files Coverage
cherrypy -0.69% 79.34%
Project Totals (105 files) 79.34%
Loading