Closed gatoatigrado closed 10 years ago
The output is as follows,
................fail: tests.exceptions_test ExceptionsTest.test_exception_after_iteration_not_returned Traceback (most recent call last): File "/nail/home/ntung/pg/other/vimap/.tox/py/lib/python2.6/site-packages/mock.py", line 1201, in patched return func(*args, **keywargs) File "./tests/exceptions_test.py", line 130, in test_exception_after_iteration_not_returned T.assert_sorted_equal(res_to_compare, expected_res_to_compare) AssertionError: assertion failed: l == r l: [(1, 1, 'output'), (3, 3, 'output'), (4, 4, 'output'), (5, 5, 'output'), (6, 6, 'output'), (7, 7, 'output'), (8, 8, 'output'), (9, 9, 'output'), ('NO_INPUT', ExceptionContext(value=ValueError('goodbye',), formatted_traceback=' File "./vimap/real_worker_routine.py", line 119, in run\n for output in fcn_iter:\n File "./tests/exceptions_test.py", line 36, in worker_raise_exc_after_iteration\n raise ValueError("goodbye")\nValueError(\'goodbye\',)'), 'exception')] r: [(1, 1, 'output'), (2, 2, 'output'), (3, 3, 'output'), (4, 4, 'output'), (5, 5, 'output'), (6, 6, 'output'), (7, 7, 'output'), (8, 8, 'output'), (9, 9, 'output')] Diff: l: [(1, 1, 'output'), (3, 3, 'output'), (4, 4, 'output'), (5, 5, 'output'), (6, 6, 'output'), (7, 7, 'output'), (8, 8, 'output'), (9, 9, 'output'), ('NO_INPUT', ExceptionContext(value=ValueError('goodbye',), formatted_traceback=' File "./vimap/real_worker_routine.py", line 119, in run\n for output in fcn_iter:\n File "./tests/exceptions_test.py", line 36, in worker_raise_exc_after_iteration\n raise ValueError("goodbye")\nValueError(\'goodbye\',)'), 'exception')] r: [(1, 1, 'output'), (2, 2, 'output'), (3, 3, 'output'), (4, 4, 'output'), (5, 5, 'output'), (6, 6, 'output'), (7, 7, 'output'), (8, 8, 'output'), (9, 9, 'output')]
oops, duplicate of #16 , maybe not so rare
The output is as follows,