From 4542637effb5b1dd351d3906274b514a60bce519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Cie=C5=9Blak?= Date: Mon, 21 Jan 2019 09:22:00 +0000 Subject: [PATCH] Use pexpect.TIMEOUT instead of pexpect.exceptions.TIMEOUT All pexpect submodules have been moved into the pexpect package as of version 3.0. --- changelog.rst | 1 + tests/features/steps/wrappers.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.rst b/changelog.rst index 9c96f3cf..8495a782 100644 --- a/changelog.rst +++ b/changelog.rst @@ -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: ====== diff --git a/tests/features/steps/wrappers.py b/tests/features/steps/wrappers.py index b553a3f1..31e6c46d 100644 --- a/tests/features/steps/wrappers.py +++ b/tests/features/steps/wrappers.py @@ -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.