summaryrefslogtreecommitdiff
path: root/test/units/plugins
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2019-08-09 14:58:46 -0400
committerGitHub <noreply@github.com>2019-08-09 14:58:46 -0400
commit2d266fbc87c6e1f2bd7bb887e254938278b8d2cc (patch)
tree8bcdf1db075e22bdf4cf758402974f231b7fe164 /test/units/plugins
parent5a50fb35df769f5c3d4bc79fa46353dc9b1ebe87 (diff)
downloadansible-2d266fbc87c6e1f2bd7bb887e254938278b8d2cc.tar.gz
Fix unit tests to work with pytest >= 5.0 (#60246)
pytest made a change in the way the message from ExceptionInfo objects was returned. https://docs.pytest.org/en/latest/changelog.html#pytest-5-0-0-2019-06-28
Diffstat (limited to 'test/units/plugins')
-rw-r--r--test/units/plugins/terminal/test_junos.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/units/plugins/terminal/test_junos.py b/test/units/plugins/terminal/test_junos.py
index d5ba4709e5..b863bb7b03 100644
--- a/test/units/plugins/terminal/test_junos.py
+++ b/test/units/plugins/terminal/test_junos.py
@@ -52,4 +52,4 @@ def test_on_open_shell_raises_problem_setting_terminal_config(junos_terminal):
with pytest.raises(AnsibleConnectionFailure) as exc:
junos_terminal.on_open_shell()
- assert 'unable to set terminal parameters' in str(exc)
+ assert 'unable to set terminal parameters' in str(exc.value)