|
|
| wait_for_pending_cleanups (self, initial_active_threads=None, initial_main_greenlets=None) |
| |
|
| count_objects (self, kind=list, exact_kind=True) |
| |
| | count_greenlets (self) |
| |
|
| setUp (self) |
| |
|
| tearDown (self) |
| |
|
| get_expected_returncodes_for_aborted_process (self) |
| |
| | get_process_uss (self) |
| |
|
| run_script (self, script_name, show_output=True) |
| |
|
| assertScriptRaises (self, script_name, exitcodes=None) |
| |
|
| __new__ (cls, classname, bases, classDict) |
| |
|
|
| threads_before_test |
| |
|
| main_greenlets_before_test |
| |
|
| greenlets_before_test |
| |
|
|
float | cleanup_attempt_sleep_duration = 0.001 |
| |
|
int | cleanup_max_sleep_seconds = 1 |
| |
|
int | greenlets_before_test = 0 |
| |
|
int | threads_before_test = 0 |
| |
|
int | main_greenlets_before_test = 0 |
| |
|
bool | expect_greenlet_leak = False |
| |
◆ count_greenlets()
| greenlet.tests.TestCase.count_greenlets |
( |
|
self | ) |
|
Find all the greenlets and subclasses tracked by the GC.
◆ get_process_uss()
| greenlet.tests.TestCase.get_process_uss |
( |
|
self | ) |
|
Return the current process's USS in bytes.
uss is available on Linux, macOS, Windows. Also known as
"Unique Set Size", this is the memory which is unique to a
process and which would be freed if the process was terminated
right now.
If this is not supported by ``psutil``, this raises the
:exc:`unittest.SkipTest` exception.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/greenlet/tests/__init__.py