diff options
author | Antoine Pitrou <antoine@python.org> | 2015-04-23 10:35:07 +0200 |
---|---|---|
committer | Antoine Pitrou <antoine@python.org> | 2015-04-23 15:26:08 +0200 |
commit | c1a2a0e583b5cd5e582c845717b1a2eb6bd0e194 (patch) | |
tree | b5aa6f37c8f5f5b8cebf4c441ab5caf307ba095d /numpy/lib/tests/test_function_base.py | |
parent | e1e05e12898c3b56c635cef916d2fbb2b91b9d05 (diff) | |
download | numpy-c1a2a0e583b5cd5e582c845717b1a2eb6bd0e194.tar.gz |
BUG: fix instability of structured dtype hash
The hash value of a structured dtype was dependent on iteration order
of the fields mapping, which could make (in rare conditions) two
equal dtypes hash to different values. We now consider the fields
in deterministic order, according to the names property.
Closes #5715.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions