MemoryTestCase

class lsst.utils.tests.MemoryTestCase(methodName='runTest')

Bases: TestCase

Check for resource leaks.

Attributes Summary

ignore_regexps

List of regexps to ignore when checking for open files.

Methods Summary

tearDownClass()

Reset the leak counter when the tests have been completed

testFileDescriptorLeaks()

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.