python3: modify exception string (#40012)
This commit is contained in:
parent
31a116ccc9
commit
517ef1d334
|
@ -178,9 +178,8 @@ def test_wait_operationals(db, monkeypatch):
|
||||||
|
|
||||||
# not operational
|
# not operational
|
||||||
obj2.last_operational_success_timestamp = None
|
obj2.last_operational_success_timestamp = None
|
||||||
with pytest.raises(CommandError) as e_info:
|
with pytest.raises(CommandError, match='timeout waiting for url2'):
|
||||||
command.wait_operationals(.6)
|
command.wait_operationals(.6)
|
||||||
assert str(e_info).find('CommandError: timeout waiting for url2') != -1
|
|
||||||
|
|
||||||
def test_set_variable(db):
|
def test_set_variable(db):
|
||||||
command = Command()
|
command = Command()
|
||||||
|
|
Loading…
Reference in New Issue