Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
greenlet.tests.TestCase Class Reference
Inheritance diagram for greenlet.tests.TestCase:
Inheritance graph
[legend]
Collaboration diagram for greenlet.tests.TestCase:
Collaboration graph
[legend]

Public Member Functions

 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)
 
- Public Member Functions inherited from greenlet.tests.TestCaseMetaClass
 __new__ (cls, classname, bases, classDict)
 

Public Attributes

 threads_before_test
 
 main_greenlets_before_test
 
 greenlets_before_test
 

Static Public Attributes

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
 

Member Function Documentation

◆ 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: