[Python-Dev] test_sort.py failure (original) (raw)

Tim Peters tim.one at comcast.net
Thu Jul 29 03:19:35 CEST 2004


[Mark Russell]

I had exactly the same thing happen today as well (unrepeatable failure in testbug453523). Would it defeat the purpose of the test to use a fixed starting point for the random numbers so the results are repeatable?

Yes, it would defeat the purpose. Randomization is there deliberately to minimize dubious assumptions. And this paid off! list.sort() is broken now in a way it wasn't broken in 2.3, and a fixed test case probably would not have revealed this.



More information about the Python-Dev mailing list