fix expected float error message

This commit is contained in:
cakemanny 2019-03-27 22:46:30 +00:00
parent b2e82685b4
commit 378a732968

View File

@ -223,7 +223,7 @@ def test_fails_with_number_message(app):
expected_error = ( expected_error = (
'Value "foo" for parameter `some_number` ' 'Value "foo" for parameter `some_number` '
"does not match pattern for type `float`: -?[0-9\\\\.]+" r"does not match pattern for type `float`: -?(?:\d+(?:\.\d*)?|\.\d+)"
) )
assert str(e.value) == expected_error assert str(e.value) == expected_error