Django

Code

Changeset 7890

Show
Ignore:
Timestamp:
07/11/08 09:29:47 (4 months ago)
Author:
russellm
Message:

Fixed #7303 -- Clarified a test case that was dependent on dict ordering. Thanks to leosoto for the patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/utils/datastructures.py

    r7294 r7890  
    4545[2, 1] 
    4646>>> real_dict = dict(tuples) 
    47 >>> real_dict.values(
     47>>> sorted(real_dict.values()
    4848['one', 'second-two'] 
    49 >>> d.values() 
     49>>> d.values() # Here the order of SortedDict values *is* what we are testing 
    5050['second-two', 'one'] 
    5151"""