nose-devs/nose — Issue #441: --with-id and --processes=n don't play together
Author: jpellerin
Created: 2011-12-14 16:11:43+00:00
State: open

What steps will reproduce the problem?

1. use this simple 2-case file

$ cat > tests.py

def test1() assert True
def test2(): assert True

2. Run:

$ nosetests tests.py -verbose=2 --processes=2 --with-id

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

Expected a success, instead I got:

ERROR
ERROR

======================================================================
ERROR: tests.test1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/nose/case.py", line 133, in run
self.runTest(result)
File "/Library/Python/2.6/site-packages/nose/case.py", line 151, in runTest
test(result)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 300, in __call__
return self.run(*args, **kwds)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 266, in run
result.startTest(self)
File "/Library/Python/2.6/site-packages/nose/proxy.py", line 161, in startTest
self.plugins.startTest(self.test)
File "/Library/Python/2.6/site-packages/nose/plugins/manager.py", line 94, in __call__
return self.call(*arg, **kw)
File "/Library/Python/2.6/site-packages/nose/plugins/manager.py", line 162, in simple
result = meth(*arg, **kw)
File "/Library/Python/2.6/site-packages/nose/plugins/testid.py", line 272, in startTest
self.write('#%s ' % self.tests[adr])
File "/Library/Python/2.6/site-packages/nose/plugins/testid.py", line 306, in write
self.stream.write(output)
AttributeError: 'TestId' object has no attribute 'stream'

======================================================================
ERROR: tests.test2
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/nose/case.py", line 133, in run
self.runTest(result)
File "/Library/Python/2.6/site-packages/nose/case.py", line 151, in runTest
test(result)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 300, in __call__
return self.run(*args, **kwds)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 266, in run
result.startTest(self)
File "/Library/Python/2.6/site-packages/nose/proxy.py", line 161, in startTest
self.plugins.startTest(self.test)
File "/Library/Python/2.6/site-packages/nose/plugins/manager.py", line 94, in __call__
return self.call(*arg, **kw)
File "/Library/Python/2.6/site-packages/nose/plugins/manager.py", line 162, in simple
result = meth(*arg, **kw)
File "/Library/Python/2.6/site-packages/nose/plugins/testid.py", line 272, in startTest
self.write('#%s ' % self.tests[adr])
File "/Library/Python/2.6/site-packages/nose/plugins/testid.py", line 306, in write
self.stream.write(output)
AttributeError: 'TestId' object has no attribute 'stream'

----------------------------------------------------------------------
Ran 0 tests in 0.053s

FAILED (errors=2)

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

$ nosetests --version
nosetests version 1.0.0

I'm on Mac OS X 10.6.8

Google Code Info:
Issue #: 446
Author: anh.hai....@gmail.com
Created On: 2011-08-16T07:30:10.000Z
Closed On: