diff options
author | Pauli Virtanen <pav@iki.fi> | 2018-04-07 23:37:20 +0200 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2018-04-08 17:34:02 +0200 |
commit | 18fd6a43f57ebd8b38b29cc800677932bbfe51cd (patch) | |
tree | b8e82d441dc2f8fb0623c04a36360b416879430b /numpy/lib/tests/test_function_base.py | |
parent | b8e8a6ee1f032474a0119fa0c0a6dfb51355abd6 (diff) | |
download | numpy-18fd6a43f57ebd8b38b29cc800677932bbfe51cd.tar.gz |
BUG: core: fix NPY_TITLE_KEY macro on pypy
On Pypy, dictionary keys do not necessarily preserve object identity.
This however was assumed by the NPY_TITLE_KEY macro, which relies on
descriptor.c:568 using the same 'title' object both as a dictionary key
as an entry in the tuple inserted.
Since the items in the field dict are unique, value identity is however
sufficient for the NPY_TITLE_KEY macro. On PyPy, fix the macro by
comparing values instead.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions