MCPcopy
hub / github.com/django/django / _terminate_thread

Method _terminate_thread

django/test/testcases.py:1864–1869  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

1862
1863 @classmethod
1864 def _terminate_thread(cls):
1865 # Terminate the live server's thread.
1866 cls.server_thread.terminate()
1867 # Restore shared connections' non-shareability.
1868 for conn in cls.server_thread.connections_override.values():
1869 conn.dec_thread_sharing()
1870
1871
1872class SerializeMixin:

Callers

nothing calls this directly

Calls 3

terminateMethod · 0.80
dec_thread_sharingMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected