gatoatigrado / vimap

Variations on imap
Other
12 stars 7 forks source link

flake in the exceptions test (test_exception_after_iteration_not_returned) #16

Open gatoatigrado opened 10 years ago

gatoatigrado commented 10 years ago

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')]

gatoatigrado commented 10 years ago

this is flaky enough let's not call it "rare" any more. i'll fix as time provides. afaik it's not serious though.

https://travis-ci.org/gatoatigrado/vimap/jobs/19766931