Permalink
Browse files

Fixed #23380 -- Fixed flaky test: admin_filters.tests.ListFiltersTest…

…s.test_relatedfield
  • Loading branch information...
1 parent fb545e5 commit f7d3a6255c7ae3beb9ccdf6d20f6598061cd1bff Baylee Feore committed with timgraham Sep 5, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/admin_filters/tests.py
@@ -402,7 +402,7 @@ def test_relatedfieldlistfilter_foreignkey(self):
# Make sure that all users are present in the author's list filter
filterspec = changelist.get_filters(request)[0][1]
expected = [(self.alfred.pk, 'alfred'), (self.bob.pk, 'bob'), (self.lisa.pk, 'lisa')]
- self.assertEqual(filterspec.lookup_choices, expected)
+ self.assertEqual(sorted(filterspec.lookup_choices), sorted(expected))
request = self.request_factory.get('/', {'author__isnull': 'True'})
changelist = self.get_changelist(request, Book, modeladmin)

0 comments on commit f7d3a62

Please sign in to comment.