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

Method f

test/IECore/CancellerTest.py:61–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 def testFinally( self ) :
60
61 def f() :
62
63 c = IECore.Canceller()
64 c.cancel()
65
66 didFinally = False
67 try :
68 IECore.Canceller.check( c )
69 finally :
70 didFinally = True
71
72 self.assertEqual( didFinally, True )
73
74 self.assertRaises( IECore.Cancelled, f )
75

Callers

nothing calls this directly

Calls 3

cancelMethod · 0.95
CancellerMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected