diff options
Diffstat (limited to 'test/units/utils')
-rw-r--r-- | test/units/utils/display/test_curses.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/utils/display/test_curses.py b/test/units/utils/display/test_curses.py index 6816b715ee..e2474b5409 100644 --- a/test/units/utils/display/test_curses.py +++ b/test/units/utils/display/test_curses.py @@ -60,8 +60,8 @@ def test_pause_missing_curses(mocker, monkeypatch): assert mod.HAS_CURSES is False - with pytest.raises(AttributeError): - assert mod.curses + with pytest.raises(AttributeError, match=r"^module 'ansible\.utils\.display' has no attribute"): + mod.curses # pylint: disable=pointless-statement assert mod.HAS_CURSES is False assert mod.MOVE_TO_BOL == b'\r' |