MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testLifetime

Method testLifetime

test/IECore/MessageHandler.py:220–230  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

218 self.assertEqual( str( i ), m.message )
219
220 def testLifetime( self ) :
221
222 m = IECore.NullMessageHandler()
223 w = weakref.ref( m )
224
225 with m :
226 pass
227
228 del m
229
230 self.assertEqual( w(), None )
231
232 def testExceptionHandling( self ) :
233

Callers

nothing calls this directly

Calls 1

NullMessageHandlerMethod · 0.80

Tested by

no test coverage detected