[Python-Dev] test_sort.py failure (original) (raw)
Tim Peters tim.one at comcast.net
Thu Jul 29 03:19:35 CEST 2004
- Previous message: [Python-Dev] test_sort.py failure
- Next message: [Python-Dev] unnamed defs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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.
- Previous message: [Python-Dev] test_sort.py failure
- Next message: [Python-Dev] unnamed defs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]