          the corresponding exception doesn't get swallowed (#17828).
          """
          modeladmin = DecadeFilterBookAdminWithFailingQueryset(Book, site)
          request = self.request_factory.get('/', {})
          self.assertRaises(ZeroDivisionError, self.get_changelist, request, Book, modeladmin)
  
      def test_simplelistfilter_with_queryset_based_lookups(self):
          modeladmin = DecadeFilterBookAdminWithQuerysetBasedLookups(Book, site)
          request = self.request_factory.get('/', {})
          changelist = self.get_changelist(request, Book, modeladmin)
 
</s> remove         self.assertRaises(signing.BadSignature,
            request.get_signed_cookie, 'c')
 </s> add         with self.assertRaises(signing.BadSignature):
            request.get_signed_cookie('c') </s> remove         self.assertRaises(signing.BadSignature,
            request.get_signed_cookie, 'a', salt='two')
 </s> add         with self.assertRaises(signing.BadSignature):
            request.get_signed_cookie('a', salt='two') </s> remove         self.assertRaises(ImproperlyConfigured, get_user, request)
 </s> add         with self.assertRaises(ImproperlyConfigured):
            get_user(request) </s> remove         self.assertRaises(PermissionDenied, a_view, request)
 </s> add         with self.assertRaises(PermissionDenied):
            a_view(request) </s> remove         self.assertRaises(ValidationError, site.full_clean)
 </s> add         with self.assertRaises(ValidationError):
            site.full_clean()
        with self.assertRaises(ZeroDivisionError):
            self.get_changelist(request, Book, modeladmin)
          the corresponding exception doesn't get swallowed (#17828).
          """
          modeladmin = DecadeFilterBookAdminWithFailingQueryset(Book, site)
          request = self.request_factory.get('/', {})
        with self.assertRaises(ZeroDivisionError):
            self.get_changelist(request, Book, modeladmin)
  
      def test_simplelistfilter_with_queryset_based_lookups(self):
          modeladmin = DecadeFilterBookAdminWithQuerysetBasedLookups(Book, site)
          request = self.request_factory.get('/', {})
          changelist = self.get_changelist(request, Book, modeladmin)
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/admin_filters/tests.py