Ticket #7303: avoid_checking_for_builtin_dict_order.2.patch

File avoid_checking_for_builtin_dict_order.2.patch, 606 bytes (added by Leo Soto M., 16 years ago)

new version, doesn't use sorted

  • tests/regressiontests/utils/datastructures.py

    diff -r 7894933e190c tests/regressiontests/utils/datastructures.py
    a b  
    4444>>> d.keys()
    4545[2, 1]
    4646>>> real_dict = dict(tuples)
    47 >>> real_dict.values()
     47>>> values = real_dict.values()
     48>>> values.sort() # Not testing order, just contents
     49>>> values
    4850['one', 'second-two']
    49 >>> d.values()
     51>>> d.values() # Here the order of SortedDict values *is* what we are testing
    5052['second-two', 'one']
    51 """
    52  No newline at end of file
     53"""
Back to Top