MemoryTestCase#
- class lsst.utils.tests.MemoryTestCase(methodName='runTest')#
Bases:
TestCaseCheck for resource leaks.
Attributes Summary
List of regexps to ignore when checking for open files.
Methods Summary
Reset the leak counter when the tests have been completed.
Check if any file descriptors are open since init() called.
Attributes Documentation
- ignore_regexps: ClassVar[list[str]] = []#
List of regexps to ignore when checking for open files.
Methods Documentation
- classmethod tearDownClass() None#
Reset the leak counter when the tests have been completed.
- testFileDescriptorLeaks() None#
Check if any file descriptors are open since init() called.
Ignores files with certain known path components and any files that match regexp patterns in class property
ignore_regexps.