Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with failure-detail plugin #15

Open
fredericsureau opened this issue Mar 7, 2016 · 0 comments
Open

Incompatibility with failure-detail plugin #15

fredericsureau opened this issue Mar 7, 2016 · 0 comments

Comments

@fredericsureau
Copy link

Hello there, thanks for sharing your plugin!

It seems that there is an incompatibility with the built-in plugin failure-detail.

Here is the trace I get:

$ nosetests --with-process-isolation --failure-detail
E
======================================================================
ERROR: test.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 133, in run
    self.runTest(result)
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 151, in runTest
    test(result)
  File "/usr/local/lib/python2.7/dist-packages/nosepipe.py", line 188, in __call__
    getattr(result, method_name)(self._test, exc_info)
  File "/usr/lib/python2.7/dist-packages/nose/proxy.py", line 143, in addFailure
    formatted = plugins.formatFailure(self.test, err)
  File "/usr/lib/python2.7/dist-packages/nose/plugins/manager.py", line 99, in __call__
    return self.call(*arg, **kw)
  File "/usr/lib/python2.7/dist-packages/nose/plugins/manager.py", line 141, in chain
    result = meth(*arg, **kw)
  File "/usr/lib/python2.7/dist-packages/nose/plugins/failuredetail.py", line 45, in formatFailure
    tbinfo = force_unicode(inspect_traceback(tb))
  File "/usr/lib/python2.7/dist-packages/nose/inspector.py", line 30, in inspect_traceback
    lines, exc_line = tbsource(tb)
  File "/usr/lib/python2.7/dist-packages/nose/inspector.py", line 87, in tbsource
    lines, dummy = inspect.findsource(frame)
  File "/usr/lib/python2.7/inspect.py", line 526, in findsource
    file = getfile(object)
  File "/usr/lib/python2.7/inspect.py", line 420, in getfile
    'function, traceback, frame, or code object'.format(object))
TypeError: <nosepipe.Frame object at 0x7f4eb6ea9210> is not a module, class, method, function, traceback, frame, or code object

----------------------------------------------------------------------
Ran 1 test in 0.127s

FAILED (errors=1)

The problem is due to the use of fake Frame object. I don't understand why you use such fake traceback objects since they seem to be simple proxy to their standard lib equivalent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant