

@timed(3)
def test_timeout_out(self):
    p = EasyProcess([python, '-c', "import time;print( 'start');time.sleep(5);print( 'end')"]).call(timeout=1)
    eq_(p.is_alive(), False)
    eq_(self.timeout_happened, True)
    ok_((p.return_code < 0))
    eq_(p.stdout, '')

dataset/ETHPy150Open ponty/EasyProcess/tests/fast/test_timeout.py Test.test_timeout_out/VarMisuse@49/79 `p`->`self`