diff options
author | Nathaniel J. Smith <njs@pobox.com> | 2017-02-04 23:04:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-04 23:04:07 -0800 |
commit | 72839c43f2536c65bc4fbf6db5ae8ebb1c29c674 (patch) | |
tree | 9b269b81c74e56071d9cf01da06f128dea976148 | |
parent | fa8e910bb58194c4d99565f77d91d9c27b720c33 (diff) | |
parent | 5d5d65be2557fdb9b41f100dd12c5ed594aeb9a3 (diff) | |
download | numpy-72839c43f2536c65bc4fbf6db5ae8ebb1c29c674.tar.gz |
Merge pull request #8569 from anntzer/missing-tracebackhides
Add missing __tracebackhide__ to testing functions.
-rw-r--r-- | numpy/testing/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index b959ea741..b5a7e05c4 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -82,6 +82,7 @@ def assert_(val, msg=''): For documentation on usage, refer to the Python documentation. """ + __tracebackhide__ = True # Hide traceback for py.test if not val: try: smsg = msg() @@ -846,6 +847,7 @@ def assert_array_equal(x, y, err_msg='', verbose=True): ... rtol=1e-10, atol=0) """ + __tracebackhide__ = True # Hide traceback for py.test assert_array_compare(operator.__eq__, x, y, err_msg=err_msg, verbose=verbose, header='Arrays are not equal') |