summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests
diff options
context:
space:
mode:
authorM. Eric Irrgang <ericirrgang@gmail.com>2022-07-16 15:51:51 -0500
committerM. Eric Irrgang <ericirrgang@gmail.com>2022-07-16 15:51:51 -0500
commit5651445944bce163a2c3f746d6ac1acd9ae76032 (patch)
treeaad59d205efb7283cc83ec3c87802e3ee3a8b028 /numpy/array_api/tests
parent871a1f9e7ac791acde6664498cf374ed88b0c850 (diff)
downloadnumpy-5651445944bce163a2c3f746d6ac1acd9ae76032.tar.gz
Update comment and obey formatting requirements.
Diffstat (limited to 'numpy/array_api/tests')
-rw-r--r--numpy/array_api/tests/test_asarray.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/array_api/tests/test_asarray.py b/numpy/array_api/tests/test_asarray.py
index d9bbc675b..bd1859d71 100644
--- a/numpy/array_api/tests/test_asarray.py
+++ b/numpy/array_api/tests/test_asarray.py
@@ -16,8 +16,8 @@ def test_fast_return():
equivalent_requirement = np.dtype('i', metadata={'spam': True})
c = np.asarray(b, dtype=equivalent_requirement)
- # A quirk of the metadata test is that equivalent metadata dicts are still
- # separate objects and so don't evaluate as the same array type description.
+ # The descriptors are equivalent, but we have created
+ # distinct dtype instances.
assert unequal_type == equivalent_requirement
assert unequal_type is not equivalent_requirement
assert c is not b