#NEWLINE# def testPostTaskCycles( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# s [ 't1' ] = GafferDispatchTest . LoggingExecutableNode ( ) #NEWLINE# s [ 't2' ] = GafferDispatchTest . LoggingExecutableNode ( ) #NEWLINE# s [ 't2' ] [ 'preTasks' ] [ 0 ] . setInput ( s [ 't1' ] [ 'task' ] ) #NEWLINE# s [ 't2' ] [ 'postTasks' ] [ 0 ] . setInput ( s [ 't1' ] [ 'task' ] ) #NEWLINE# dispatcher = GafferDispatch . Dispatcher . create ( 'testDispatcher' ) #NEWLINE# self . assertRaisesRegexp ( RuntimeError , 'cannot have cyclic dependencies' , dispatcher . dispatch , [ s [ 't2' ] ] )