Skip to content

flake in the exceptions test (test_exception_after_iteration_not_returned) #16

@gatoatigrado

Description

@gatoatigrado

idk what's going on yet. perhaps it can be debugged by looping the test?

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 129, 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 116, 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 116, 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')]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions