diff --git a/IPython/terminal/console/tests/test_console.py b/IPython/terminal/console/tests/test_console.py index ff70a7e..60b9679 100644 --- a/IPython/terminal/console/tests/test_console.py +++ b/IPython/terminal/console/tests/test_console.py @@ -43,13 +43,15 @@ def test_console_starts(): except IOError: raise SkipTest("Couldn't find command %s" % cmd) - idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout=45) + # timeout after one minute + t = 60 + idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout=t) p.sendline('5') - idx = p.expect([r'Out\[\d+\]: 5', pexpect.EOF], timeout=15) - idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout=15) + idx = p.expect([r'Out\[\d+\]: 5', pexpect.EOF], timeout=t) + idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout=t) # send ctrl-D;ctrl-D to exit p.sendeof() p.sendeof() - p.expect([pexpect.EOF, pexpect.TIMEOUT], timeout=30) + p.expect([pexpect.EOF, pexpect.TIMEOUT], timeout=t) if p.isalive(): p.terminate()