pombreda / python-nose

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

multiprocess plugin and generator fixtures #416

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This test fails pretty spectacularly, and I believe it touches on the core of 
the problem that is blocking Kumar form making the 1.0.1 release.

--Buck

$ python2.7 bin/nosetests --processes=1 
functional_tests/test_generator_fixtures.py
.....FFFFF
======================================================================
FAIL: test_generator_fixtures.check(0,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bgolemon/trees/multiprocessing/nose/case.py", line 187, in runTest
    self.test(*self.arg)
  File "/home/bgolemon/trees/multiprocessing/functional_tests/test_generator_fixtures.py", line 27, in check
    eq_(called, expect)
  File "/home/bgolemon/trees/multiprocessing/nose/tools.py", line 31, in eq_
    assert a == b, msg or "%r != %r" % (a, b)
AssertionError: ['outer_setup', 'outer_teardown', 'inner_setup'] != 
['outer_setup', 'inner_setup']

======================================================================
FAIL: test_generator_fixtures.check(1,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bgolemon/trees/multiprocessing/nose/case.py", line 187, in runTest
    self.test(*self.arg)
  File "/home/bgolemon/trees/multiprocessing/functional_tests/test_generator_fixtures.py", line 27, in check
    eq_(called, expect)
  File "/home/bgolemon/trees/multiprocessing/nose/tools.py", line 31, in eq_
    assert a == b, msg or "%r != %r" % (a, b)
AssertionError: ['outer_setup', 'outer_teardown', 'inner_setup', 
'inner_teardown', 'inner_setup'] != ['outer_setup', 'inner_setup', 
'inner_teardown', 'inner_setup']

======================================================================
FAIL: test_generator_fixtures.check(2,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bgolemon/trees/multiprocessing/nose/case.py", line 187, in runTest
    self.test(*self.arg)
  File "/home/bgolemon/trees/multiprocessing/functional_tests/test_generator_fixtures.py", line 27, in check
    eq_(called, expect)
  File "/home/bgolemon/trees/multiprocessing/nose/tools.py", line 31, in eq_
    assert a == b, msg or "%r != %r" % (a, b)
AssertionError: ['outer_setup', 'outer_teardown', 'inner_setup', 
'inner_teardown', 'inner_setup', 'inner_teardown', 'inner_setup'] != 
['outer_setup', 'inner_setup', 'inner_teardown', 'inner_setup', 
'inner_teardown', 'inner_setup']

======================================================================
FAIL: test_generator_fixtures.check(3,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bgolemon/trees/multiprocessing/nose/case.py", line 187, in runTest
    self.test(*self.arg)
  File "/home/bgolemon/trees/multiprocessing/functional_tests/test_generator_fixtures.py", line 27, in check
    eq_(called, expect)
  File "/home/bgolemon/trees/multiprocessing/nose/tools.py", line 31, in eq_
    assert a == b, msg or "%r != %r" % (a, b)
AssertionError: ['outer_setup', 'outer_teardown', 'inner_setup', 
'inner_teardown', 'inner_setup', 'inner_teardown', 'inner_setup', 
'inner_teardown', 'inner_setup'] != ['outer_setup', 'inner_setup', 
'inner_teardown', 'inner_setup', 'inner_teardown', 'inner_setup', 
'inner_teardown', 'inner_setup']

======================================================================
FAIL: test_generator_fixtures.check(4,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bgolemon/trees/multiprocessing/nose/case.py", line 187, in runTest
    self.test(*self.arg)
  File "/home/bgolemon/trees/multiprocessing/functional_tests/test_generator_fixtures.py", line 27, in check
    eq_(called, expect)
  File "/home/bgolemon/trees/multiprocessing/nose/tools.py", line 31, in eq_
    assert a == b, msg or "%r != %r" % (a, b)
AssertionError: ['outer_setup', 'outer_teardown', 'inner_setup', 
'inner_teardown', 'inner_setup', 'inner_teardown', 'inner_setup', 
'inner_teardown', 'inner_setup', 'inner_teardown', 'inner_setup'] != 
['outer_setup', 'inner_setup', 'inner_teardown', 'inner_setup', 
'inner_teardown', 'inner_setup', 'inner_teardown', 'inner_setup', 
'inner_teardown', 'inner_setup']

----------------------------------------------------------------------
Ran 10 tests in 0.154s

FAILED (failures=5)

Original issue reported on code.google.com by workitha...@gmail.com on 5 May 2011 at 5:32

GoogleCodeExporter commented 9 years ago

Original comment by kumar.mcmillan on 5 May 2011 at 4:53

GoogleCodeExporter commented 9 years ago

Original comment by liucou...@gmail.com on 5 Nov 2011 at 10:01