From f5063914b3de442d73c6cade5acb33a47fbcfd72 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 4 Mar 2009 04:53:15 +0000 Subject: [PATCH] Fixed #10381 -- Fixed some a machine-dependent test failure after r9921. The patch is from Russell, but I'm applying it because I want my tests to pass again (and he doesn't see the failure). git-svn-id: http://code.djangoproject.com/svn/django/trunk@9964 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/commands/dumpdata.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/django/core/management/commands/dumpdata.py b/django/core/management/commands/dumpdata.py index eecf9404f3..1f2a2db981 100644 --- a/django/core/management/commands/dumpdata.py +++ b/django/core/management/commands/dumpdata.py @@ -1,6 +1,7 @@ from django.core.exceptions import ImproperlyConfigured from django.core.management.base import BaseCommand, CommandError from django.core import serializers +from django.utils.datastructures import SortedDict from optparse import make_option @@ -27,9 +28,9 @@ class Command(BaseCommand): excluded_apps = [get_app(app_label) for app_label in exclude] if len(app_labels) == 0: - app_list = dict([(app, None) for app in get_apps() if app not in excluded_apps]) + app_list = SortedDict([(app, None) for app in get_apps() if app not in excluded_apps]) else: - app_list = {} + app_list = SortedDict() for label in app_labels: try: app_label, model_label = label.split('.')