diff options
author | Antony Lee <anntzer.lee@gmail.com> | 2017-02-04 20:53:18 -0800 |
---|---|---|
committer | Antony Lee <anntzer.lee@gmail.com> | 2017-02-04 20:53:18 -0800 |
commit | 5d5d65be2557fdb9b41f100dd12c5ed594aeb9a3 (patch) | |
tree | 9b269b81c74e56071d9cf01da06f128dea976148 /numpy/testing/utils.py | |
parent | fa8e910bb58194c4d99565f77d91d9c27b720c33 (diff) | |
download | numpy-5d5d65be2557fdb9b41f100dd12c5ed594aeb9a3.tar.gz |
Add missing __tracebackhide__ to testing functions.
Diffstat (limited to 'numpy/testing/utils.py')
-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') |