Skip to content

Commit

Permalink
ISSUE-439: Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankanow authored and alecthomas committed Feb 19, 2021
1 parent ef32f11 commit 1720439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions voluptuous/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

Expand Down

0 comments on commit 1720439

Please sign in to comment.