'Ensure that when a filter\'s queryset method fails, it fails loudly and
the corresponding exception doesn\'t get swallowed.
Refs #17828.'

def test_filter_with_failing_queryset(self):

    modeladmin = DecadeFilterBookAdminWithFailingQueryset(Book, site)
    request = self.request_factory.get(u'/', {})
    self.assertRaises(ZeroDivisionError, self.get_changelist, request, Book, modeladmin)
