summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_operations.py
Commit message (Collapse)AuthorAgeFilesLines
* BadDictKey test: The output file expected "raising error" to be printedTim Peters2001-05-291-1/+10
| | | | | | | | | | | 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.
* Jack Jansen hit a bug in the new dict code, reported on python-dev.Tim Peters2001-05-231-0/+15
| | | | | | | | | | dictresize() was too aggressive about never ever resizing small dicts. If a small dict is entirely full, it needs to rebuild it despite that it won't actually resize it, in order to purge old dummy entries thus creating at least one virgin slot (lookdict assumes at least one such exists). Also took the opportunity to add some high-level comments to dictresize.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-9/+9
|
* Test case to exercise fix for error propogation bug in dictionarys.Fred Drake2000-08-311-1/+24
|
* Initial revisionGuido van Rossum1992-01-271-0/+5