MemoryTestCase¶
- 
class lsst.utils.tests.MemoryTestCase(methodName='runTest')¶
- Bases: - unittest.case.TestCase- Check for memory leaks since memId0 was allocated - Methods Summary - setUp()- Hook method for setting up the test fixture before exercising it. - tearDownClass()- Reset the leak counter when the tests have been completed - testFileDescriptorLeaks()- Check if any file descriptors are open since init() called. - testLeaks()- Check for memory leaks in the preceding tests - Methods Documentation - 
setUp()¶
- Hook method for setting up the test fixture before exercising it. 
 - 
classmethod tearDownClass()¶
- Reset the leak counter when the tests have been completed 
 - 
testFileDescriptorLeaks()¶
- Check if any file descriptors are open since init() called. 
 - 
testLeaks()¶
- Check for memory leaks in the preceding tests 
 
-