summaryrefslogtreecommitdiff
path: root/numpy/array_api/_creation_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-05-28 11:27:37 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2022-06-15 11:42:02 -0700
commit80af7aceb1af9e35ed67abce66beab46ddd2bfa6 (patch)
treecf93e45446c3f4db0c9fc8a66ad138253e45e6d3 /numpy/array_api/_creation_functions.py
parentb2731a5ec4f765205d5c797299e8a4ba1e4b04ca (diff)
downloadnumpy-80af7aceb1af9e35ed67abce66beab46ddd2bfa6.tar.gz
API: Enforce float64 precision for `assert_almost_equal`
This ensures that the precision is not downcast, which could make a small value zero (for float16 mostly). This lets tests pass that check whether `np.float16(0)` is almost equal to 0, which otherwise fail (because `float16(0.00000001)` will evaluate to 0 exactly.
Diffstat (limited to 'numpy/array_api/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions