New issue 483: 'function' object has no attribute 'im_func' with twisted 
TestCases on python 3
https://bitbucket.org/hpk42/pytest/issue/483/function-object-has-no-attribute-im_func

Aaron Gallagher:

The full traceback is:

    INTERNALERROR> Traceback (most recent call last):
    INTERNALERROR>   File 
"/Users/aarongallagher/src/git/parsley/ve3/lib/python3.3/site-packages/_pytest/main.py",
 line 81, in wrap_session
    INTERNALERROR>     doit(config, session)
    INTERNALERROR>   File 
"/Users/aarongallagher/src/git/parsley/ve3/lib/python3.3/site-packages/_pytest/main.py",
 line 118, in _main
    INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
    INTERNALERROR>   File 
"/Users/aarongallagher/src/git/parsley/ve3/lib/python3.3/site-packages/_pytest/core.py",
 line 377, in __call__
    INTERNALERROR>     return self._docall(methods, kwargs)
    INTERNALERROR>   File 
"/Users/aarongallagher/src/git/parsley/ve3/lib/python3.3/site-packages/_pytest/core.py",
 line 388, in _docall
    INTERNALERROR>     res = mc.execute()
    INTERNALERROR>   File 
"/Users/aarongallagher/src/git/parsley/ve3/lib/python3.3/site-packages/_pytest/core.py",
 line 289, in execute
    INTERNALERROR>     res = method(**kwargs)
    INTERNALERROR>   File 
"/Users/aarongallagher/src/git/parsley/ve3/lib/python3.3/site-packages/_pytest/main.py",
 line 138, in pytest_runtestloop
    INTERNALERROR>     item.config.hook.pytest_runtest_protocol(item=item, 
nextitem=nextitem)
    INTERNALERROR>   File 
"/Users/aarongallagher/src/git/parsley/ve3/lib/python3.3/site-packages/_pytest/core.py",
 line 377, in __call__
    INTERNALERROR>     return self._docall(methods, kwargs)
    INTERNALERROR>   File 
"/Users/aarongallagher/src/git/parsley/ve3/lib/python3.3/site-packages/_pytest/core.py",
 line 388, in _docall
    INTERNALERROR>     res = mc.execute()
    INTERNALERROR>   File 
"/Users/aarongallagher/src/git/parsley/ve3/lib/python3.3/site-packages/_pytest/core.py",
 line 289, in execute
    INTERNALERROR>     res = method(**kwargs)
    INTERNALERROR>   File 
"/Users/aarongallagher/src/git/parsley/ve3/lib/python3.3/site-packages/_pytest/unittest.py",
 line 157, in pytest_runtest_protocol
    INTERNALERROR>     Failure__init__ = ut.Failure.__init__.im_func
    INTERNALERROR> AttributeError: 'function' object has no attribute 'im_func'

If I amend the line to omit the `.im_func`, the tests run without issue.


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to