def disable_signal(module, signal):
 return patch.object(module, signal, new=Signal())

def disable_signal ( module , signal ) : return patch . object ( module , signal , new = Signal ( ) )
replace signal inside of module with a dummy signal .