Skip to content

Commit

Permalink
Fix unit tests hiding in nose by fail_if_not_removed (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeklat authored and briancurtin committed Jul 2, 2018
1 parent 7000935 commit a8148ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def fail_if_not_removed(method):
:class:`~deprecation.UnsupportedWarning`
is raised while running the test method.
"""
def _inner(*args, **kwargs):
def test_inner(*args, **kwargs):
with warnings.catch_warnings(record=True) as caught_warnings:
warnings.simplefilter("always")
rv = method(*args, **kwargs)
Expand All @@ -270,4 +270,4 @@ def _inner(*args, **kwargs):
("%s uses a function that should be removed: %s" %
(method, str(warning.message))))
return rv
return _inner
return test_inner

0 comments on commit a8148ea

Please sign in to comment.