pombreda / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

multiprocess plugin and module-level setup don't mix #480

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a module-level setup_module() method
2. Call nosetests --processes=2
3. Bomb.

What is the expected output? What do you see instead?

You'd expect it to run. Instead, you get an AttributeError:

======================================================================
ERROR: Failure: AttributeError ('NoSharedFixtureContextSuite' object has no 
attribute 'test')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/plugins/multiprocess.py", line 688, in __runner
    test(result)
  File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python2.7/dist-packages/nose/plugins/multiprocess.py", line 784, in run
    test(orig)
  File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python2.7/dist-packages/nose/plugins/multiprocess.py", line 761, in run
    if isinstance(test.test,nose.failure.Failure):
AttributeError: 'NoSharedFixtureContextSuite' object has no attribute 'test'

What version of the product are you using? On what operating system?

jpipes@uberbox:~/repos/tempest$ nosetests --version
nosetests version 1.1.2

Please provide any additional information below.

Running without --processes=X works fine.

Original issue reported on code.google.com by jaypi...@gmail.com on 25 Jun 2012 at 5:28

GoogleCodeExporter commented 9 years ago
Hello? Bueller?

Original comment by jaypi...@gmail.com on 12 Sep 2012 at 8:17

GoogleCodeExporter commented 9 years ago
I have this issue too. This can't be such an obscure bug, can it?

Original comment by filip.la...@gmail.com on 7 Nov 2014 at 8:43