Fixing tests
Fixing tests
Posted Apr 12, 2012 12:45 UTC (Thu) by dskoll (subscriber, #1630)In reply to: Semi-closing a hole by man_ls
Parent article: Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3 security release
However, making the hashing order random would make it nearly impossible to keep static test files and my whole scheme would not so much fly but plummet.
Surely your test code should not depend on the order of elements? The Perl module Test::Deep has routines for comparing hashes (equivalent of Python's dicts) that don't depend on the order of elements.
