spec icon indicating copy to clipboard operation
spec copied to clipboard

doesn't work with multiprocessing nose plugin

Open jbeluch opened this issue 11 years ago • 1 comments

The multiprocess plugin mentions that it might not play nice with other plugins...

======================================================================
ERROR: Failure: AttributeError ('SpecPlugin' object has no attribute 'stream')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/plugins/multiprocess.py", line 715, in __runner
    test(result)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/plugins/multiprocess.py", line 812, in run
    test(orig)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/plugins/multiprocess.py", line 812, in run
    test(orig)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/case.py", line 45, in __call__
    return self.run(*arg, **kwarg)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/case.py", line 140, in run
    self.afterTest(result)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/case.py", line 64, in afterTest
    afterTest(self.test)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/proxy.py", line 111, in afterTest
    self.plugins.afterTest(self.test)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/plugins/manager.py", line 99, in __call__
    return self.call(*arg, **kw)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/nose/plugins/manager.py", line 167, in simple
    result = meth(*arg, **kw)
  File "/Users/jon/.virtualenvs/billingtools-dev/lib/python2.7/site-packages/spec/plugin.py", line 395, in afterTest
    self.stream.capture()
AttributeError: 'SpecPlugin' object has no attribute 'stream'

----------------------------------------------------------------------

jbeluch avatar Apr 25 '13 06:04 jbeluch

That's no fun. I have yet to try it out with the MP plugin myself, FWIW (most of my other projects that use nose don't work well with it either), so it's not just you :( Can't think offhand why it would break though. Let me know if you end up digging into it!

bitprophet avatar Apr 28 '13 02:04 bitprophet