Skip to content

Commit

Permalink
Added line @functools.wraps(method) to the fail_if_not_removed de…
Browse files Browse the repository at this point in the history
…corator, which should fix #42 (#48)
  • Loading branch information
domdfcoding authored Apr 20, 2020
1 parent fa21c6e commit c2c1e6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def fail_if_not_removed(method):
"""
# NOTE(briancurtin): Unless this is named test_inner, nose won't work
# properly. See Issue #32.
@functools.wraps(method)
def test_inner(*args, **kwargs):
with warnings.catch_warnings(record=True) as caught_warnings:
warnings.simplefilter("always")
Expand Down

0 comments on commit c2c1e6b

Please sign in to comment.