no need for im_func and it does not exists in python3

This commit is contained in:
Daniel Grana 2014-03-27 23:57:18 -03:00
parent 2b2c1e5b7b
commit b96d552dbd
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ def pytest_runtest_protocol(item, __multicall__):
if isinstance(item, TestCaseFunction):
if 'twisted.trial.unittest' in sys.modules:
ut = sys.modules['twisted.python.failure']
Failure__init__ = ut.Failure.__init__.im_func
Failure__init__ = ut.Failure.__init__
check_testcase_implements_trial_reporter()
def excstore(self, exc_value=None, exc_type=None, exc_tb=None,
captureVars=None):