Fix the pytest match test for python-2.6
This commit is contained in:
parent
65bedaf074
commit
8a880d6032
1 changed files with 2 additions and 2 deletions
|
@ -115,9 +115,9 @@ class TestInversePower:
|
|||
def test_root_non_number(self):
|
||||
# Messages differed in python-2.6, python-2.7-3.5, and python-3.6+
|
||||
with pytest.raises(AnsibleFilterError, match="root\\(\\) can only be used on numbers:"
|
||||
" (invalid literal for float(): a)"
|
||||
" (invalid literal for float\\(\\): a"
|
||||
"|could not convert string to float: a"
|
||||
"|could not convert string to float: 'a'"):
|
||||
"|could not convert string to float: 'a')"):
|
||||
ms.inversepower(10, 'a')
|
||||
|
||||
with pytest.raises(AnsibleFilterError, match="root\\(\\) can only be used on numbers: (a float is required|must be real number, not str)"):
|
||||
|
|
Loading…
Reference in a new issue