Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake in the exceptions test (test_exception_after_iteration_not_returned) #16

Open
gatoatigrado opened this issue Dec 3, 2013 · 1 comment

Comments

@gatoatigrado
Copy link
Owner

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant