diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-05-29 21:14:32 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-05-29 21:14:32 +0000 |
commit | 0e1a1f6d2d02be8c70af2357edc1692f615dbbbf (patch) | |
tree | 4598288eaf48adddfef64273c66e24050d5cc161 /Python/errors.c | |
parent | 2955c11f30f8f7b381e8650dc1cb15e3ecd32698 (diff) | |
download | cpython-0e1a1f6d2d02be8c70af2357edc1692f615dbbbf.tar.gz |
BadDictKey test: The output file expected "raising error" to be printed
exactly once. But the test code can't know that, as the number of times
__cmp__ is called depends on internal details of the dict implementation.
This is especially nasty because the __hash__ method returns the address
of the class object, so the hash codes seen by the dict can vary across
runs, causing the dict to use a different probe order across runs. I
just happened to see this test fail about 1 run in 7 today, but only
under a release build and when passing -O to Python. So, changed the test
to be predictable across runs.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions