Skip to content

Commit

Permalink
pytest API change + docstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
piccolbo committed Aug 27, 2019
1 parent 7fcb9d8 commit 1d05051
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ def test_decorated_call_fails(sig1, sig2):


def test_argumentless_decorator():
"""Non-randomized test for argumentless decorator
"""
"Non-randomized test for argumentless decorator"

@autosig
def fun(a=param(validator=check(int))):
Expand All @@ -112,7 +111,7 @@ def fun(a=param(validator=check(int))):
fun(1)
with raises(
AssertionError,
message="type of a = 1.0 should be <class 'int'>, <class 'float'> found instead",
match="type of a = 1.0 should be <class 'int'>, <class 'float'> found instead",
):
fun(1.0)

Expand Down

0 comments on commit 1d05051

Please sign in to comment.