##// END OF EJS Templates
Merge pull request #1155 from minrk/postexec...
Merge pull request #1155 from minrk/postexec Be less aggressive in de-registering failing post-execute functions so that normal errors don't disable them permanently. Two changes: 1. Don't unregister failing post-exec callbacks automatically. Instead, print a message regarding the failure, pointing to new `disable_failing_post_execute` trait for skipping failing callbacks. - When this flag is False (the default), failing callbacks will continue to be called. - When True, behavior is unchanged from previous, where callbacks are only allowed to fail once. 2. protect `flush_figures()` post-exec function from user error. Invalid matplotlib data may raise inside `print_figure()`. flush_figures() is a post-exec function, so user errors should not raise. Instead, call `get_ipython().showtraceback()` if called from IPython, raising as before otherwise. closes #1154

File last commit:

r3692:7403bafc
r5737:2c683b72 merge
Show More
__init__.py
9 lines | 259 B | text/x-python | PythonLexer
Thomas Spura
Unbundle of all external modules....
r3408 try:
from numpy.testing.decorators import *
Paul Ivanov
make know failures report as 'K'...
r3511 from numpy.testing.noseclasses import KnownFailure
Thomas Spura
Unbundle of all external modules....
r3408 except ImportError:
Thomas Spura
import from module and not from module.py...
r3412 from _decorators import *
MinRK
don't unconditionally import nose...
r3692 try:
from _numpy_testing_noseclasses import KnownFailure
except ImportError:
pass