summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tankanow <adam.tankanow@gmail.com>2020-12-08 16:00:29 -0500
committerAlec Thomas <alec@swapoff.org>2021-02-20 10:05:05 +1100
commit1720439e4848d966707002707e825b448ab40342 (patch)
treed8d597f3d81e06a848b19019eb653c7749a16af9
parentef32f11f159f856d88b766837ace1ed0fdefdb23 (diff)
downloadvoluptuous-1720439e4848d966707002707e825b448ab40342.tar.gz
ISSUE-439: Fix broken test
-rw-r--r--voluptuous/tests/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/voluptuous/tests/tests.py b/voluptuous/tests/tests.py
index 448abc3..cfac3e7 100644
--- a/voluptuous/tests/tests.py
+++ b/voluptuous/tests/tests.py
@@ -747,7 +747,7 @@ def test_maybe_accepts_msg():
assert s([])
-def test_maybe_returns_subvalidator_error():
+def test_maybe_returns_default_error():
schema = Schema(Maybe(Range(1, 2)))
# The following should be valid
@@ -759,7 +759,7 @@ def test_maybe_returns_subvalidator_error():
# Should trigger a MultipleInvalid exception
schema(3)
except MultipleInvalid as e:
- assert_equal(str(e), "value must be at most 2")
+ assert_equal(str(e), "not a valid value")
else:
assert False, "Did not raise correct Invalid"