( handler )
| 194 | def testThreading( self ) : |
| 195 | |
| 196 | def f( handler ) : |
| 197 | |
| 198 | with handler : |
| 199 | for i in range( 0, 100 ) : |
| 200 | IECore.msg( IECore.Msg.Level.Info, "test", str( i ) ) |
| 201 | time.sleep( 0.0001 ) # encourage python to switch threads |
| 202 | |
| 203 | handlers = [] |
| 204 | threads = [] |