1
0
Fork 0

Use pexpect.TIMEOUT instead of pexpect.exceptions.TIMEOUT

All pexpect submodules have been moved into the pexpect package as of version 3.0.
This commit is contained in:
Marcin Cieślak 2019-01-21 09:22:00 +00:00
parent ef8aac61c4
commit 4542637eff
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Upcoming:
Bug fixes:
----------
* Avoid error message on the server side if hstore extension is not installed in the current database (#991). (Thanks: `Marcin Cieślak`_)
* All pexpect submodules have been moved into the pexpect package as of version 3.0. Use pexpect.TIMEOUT (Thanks: `Marcin Cieślak`_)
2.0.2:
======

View File

@ -16,7 +16,7 @@ def expect_exact(context, expected, timeout):
timedout = False
try:
context.cli.expect_exact(expected, timeout=timeout)
except pexpect.exceptions.TIMEOUT:
except pexpect.TIMEOUT:
timedout = True
if timedout:
# Strip color codes out of the output.