nose.py: don't try to call setup if it's not callable
This commit is contained in:
		
							parent
							
								
									6eec2f5893
								
							
						
					
					
						commit
						40a55a640c
					
				|  | @ -41,7 +41,7 @@ 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"): | ||||
|     if method is not None and not hasattr(method, "_pytestfixturefunction") and callable(method): | ||||
|         # If there's any problems allow the exception to raise rather than | ||||
|         # silently ignoring them | ||||
|         method() | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue