def test_filter_with_failing_queryset(self):
        modeladmin = DecadeFilterBookAdminWithFailingQueryset(Book, site)
        request = self.request_factory.get('/', {})
        with self.assertRaises(ZeroDivisionError):
            self.get_changelist(request, Book, modeladmin)
Ensure that when a filter's queryset method fails, it fails loudly and
dataset/ETHPy150Open django/django/tests/admin_filters/tests.py/ListFiltersTests.test_filter_with_failing_queryset