          from resolve, or we will get a TypeError further down the line.
  
          Regression for #10834.
          """
          self.assertRaises(Resolver404, resolve, '')
          self.assertRaises(Resolver404, resolve, 'a')
          self.assertRaises(Resolver404, resolve, '\\')
          self.assertRaises(Resolver404, resolve, '.')
  
      def test_404_tried_urls_have_names(self):
          """
          Verifies that the list of URLs that come back from a Resolver404
          exception contains a list in the right format for printing out in
 
</s> remove             self.assertRaises(GEOSException, fg._get_ptr)
 </s> add             with self.assertRaises(GEOSException):
                fg._get_ptr() </s> remove         self.assertRaises(CommandError, management.call_command, ('explode',))
 </s> add         with self.assertRaises(CommandError):
            management.call_command(('explode',)) </s> remove         self.assertRaises(ImproperlyConfigured, Sitemap().get_urls)
 </s> add         with self.assertRaises(ImproperlyConfigured):
            Sitemap().get_urls() </s> remove         self.assertRaises(TypeError, qs.kml, 'name')
 </s> add         with self.assertRaises(TypeError):
            qs.kml('name') </s> remove         self.assertRaises(ObjectDoesNotExist, Site.objects.get_current)
 </s> add         with self.assertRaises(ObjectDoesNotExist):
            Site.objects.get_current()
        with self.assertRaises(Resolver404):
            resolve('')
        with self.assertRaises(Resolver404):
            resolve('a')
        with self.assertRaises(Resolver404):
            resolve('\\')
        with self.assertRaises(Resolver404):
            resolve('.')
          from resolve, or we will get a TypeError further down the line.
  
          Regression for #10834.
          """
        with self.assertRaises(Resolver404):
            resolve('')
        with self.assertRaises(Resolver404):
            resolve('a')
        with self.assertRaises(Resolver404):
            resolve('\\')
        with self.assertRaises(Resolver404):
            resolve('.')
        with self.assertRaises(Resolver404):
            resolve('')
        with self.assertRaises(Resolver404):
            resolve('a')
        with self.assertRaises(Resolver404):
            resolve('\\')
        with self.assertRaises(Resolver404):
            resolve('.')
        with self.assertRaises(Resolver404):
            resolve('')
        with self.assertRaises(Resolver404):
            resolve('a')
        with self.assertRaises(Resolver404):
            resolve('\\')
        with self.assertRaises(Resolver404):
            resolve('.')
        with self.assertRaises(Resolver404):
            resolve('')
        with self.assertRaises(Resolver404):
            resolve('a')
        with self.assertRaises(Resolver404):
            resolve('\\')
        with self.assertRaises(Resolver404):
            resolve('.')
  
      def test_404_tried_urls_have_names(self):
          """
          Verifies that the list of URLs that come back from a Resolver404
          exception contains a list in the right format for printing out in
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/urlpatterns_reverse/tests.py