( key )
| 81 | def testExceptionTranslation( self ) : |
| 82 | |
| 83 | def raiser( key ) : |
| 84 | |
| 85 | if key == "python" : |
| 86 | raise IECore.Cancelled() |
| 87 | else : |
| 88 | c = IECore.Canceller() |
| 89 | c.cancel() |
| 90 | IECore.Canceller.check( c ) |
| 91 | |
| 92 | c = IECore.LRUCache( raiser, 1 ) |
| 93 |