small line length fix in nose plugin call optional

This commit is contained in:
Ronny Pfannschmidt 2013-02-07 10:41:07 +01:00
parent 9d107523a1
commit b94c3084a6
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ def pytest_make_collect_report(collector):
def call_optional(obj, name):
method = getattr(obj, name, None)
if method is not None and not hasattr(method, "_pytestfixturefunction") and py.builtin.callable(method):
isfixture = hasattr(method, "_pytestfixturefunction")
if method is not None and not isfixture and py.builtin.callable(method):
# If there's any problems allow the exception to raise rather than
# silently ignoring them
method()