Skip to content

Commit c2c1e6b

Browse files
authored
Added line @functools.wraps(method) to the fail_if_not_removed decorator, which should fix #42 (#48)
1 parent fa21c6e commit c2c1e6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deprecation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ def fail_if_not_removed(method):
275275
"""
276276
# NOTE(briancurtin): Unless this is named test_inner, nose won't work
277277
# properly. See Issue #32.
278+
@functools.wraps(method)
278279
def test_inner(*args, **kwargs):
279280
with warnings.catch_warnings(record=True) as caught_warnings:
280281
warnings.simplefilter("always")

0 commit comments

Comments
 (0)