summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_recfunctions.py
diff options
context:
space:
mode:
authorAntoine Pitrou <antoine@python.org>2015-04-23 10:35:07 +0200
committerAntoine Pitrou <antoine@python.org>2015-04-23 15:26:08 +0200
commitc1a2a0e583b5cd5e582c845717b1a2eb6bd0e194 (patch)
treeb5aa6f37c8f5f5b8cebf4c441ab5caf307ba095d /numpy/lib/tests/test_recfunctions.py
parente1e05e12898c3b56c635cef916d2fbb2b91b9d05 (diff)
downloadnumpy-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_recfunctions.py')
0 files changed, 0 insertions, 0 deletions