diff options
Diffstat (limited to 'tests/regressiontests/utils/datastructures.py')
| -rw-r--r-- | tests/regressiontests/utils/datastructures.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/regressiontests/utils/datastructures.py b/tests/regressiontests/utils/datastructures.py index 52bf81a9e0..5d31d21318 100644 --- a/tests/regressiontests/utils/datastructures.py +++ b/tests/regressiontests/utils/datastructures.py @@ -44,8 +44,15 @@ >>> d.keys() [2, 1] >>> real_dict = dict(tuples) ->>> real_dict.values() +>>> sorted(real_dict.values()) ['one', 'second-two'] ->>> d.values() +>>> d.values() # Here the order of SortedDict values *is* what we are testing ['second-two', 'one'] -"""
\ No newline at end of file +""" + +# Python 2.3 doesn't have sorted() +try: + sorted +except NameError: + from django.utils.itercompat import sorted +
\ No newline at end of file |
