From 378a732968d6039304c63baa667f8ea0f7c42e3b Mon Sep 17 00:00:00 2001 From: cakemanny Date: Wed, 27 Mar 2019 22:46:30 +0000 Subject: [PATCH] fix expected float error message --- tests/test_url_building.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_url_building.py b/tests/test_url_building.py index 5e1c300a..a246aabc 100644 --- a/tests/test_url_building.py +++ b/tests/test_url_building.py @@ -223,7 +223,7 @@ def test_fails_with_number_message(app): expected_error = ( '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