diff options
| author | Tim Graham <timograham@gmail.com> | 2014-09-29 08:50:36 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-09-29 08:53:44 -0400 |
| commit | df578bf175d27684c792631a2e50a05fc37c04bb (patch) | |
| tree | 161447e967349921ddf0e6d879b04aa53fd54666 | |
| parent | 4b257cf26151df1f725b26e699d896c95eb20215 (diff) | |
Added ordering to fix non-deterministic relatedapp test.
| -rw-r--r-- | django/contrib/gis/tests/relatedapp/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/gis/tests/relatedapp/tests.py b/django/contrib/gis/tests/relatedapp/tests.py index 63ac5dc045..fa1b2de8c8 100644 --- a/django/contrib/gis/tests/relatedapp/tests.py +++ b/django/contrib/gis/tests/relatedapp/tests.py @@ -21,9 +21,9 @@ class RelatedGeoModelTest(TestCase): def test02_select_related(self): "Testing `select_related` on geographic models (see #7126)." - qs1 = City.objects.all() - qs2 = City.objects.select_related() - qs3 = City.objects.select_related('location') + qs1 = City.objects.order_by('id') + qs2 = City.objects.order_by('id').select_related() + qs3 = City.objects.order_by('id').select_related('location') # Reference data for what's in the fixtures. cities = ( |
