human
Solve the following python programming problem given the following code:
@ patch ('luigi.contrib.external_program.subprocess.Popen') 
def test_app_interruption(self, proc) : 
    def interrupt() : 
        raise KeyboardInterrupt () 
proc.return_value.wait = self 
    try : 
        job = TestSparkSubmitTask () 
        job.run () 
except KeyboardInterrupt : 
        pass 
proc.return_value.kill.check_called () 

    
    

    Fix the buggy line: proc.return_value.wait = self
assistant
#Here is Python code to fix the buggy line: proc.

proc.return_value.wait = def interrupt(