      skipUnlessDBFeature,
  )
  from django.test.html import HTMLParseError, parse_html
  from django.test.utils import (
      CaptureQueriesContext, TestContextDecorator, isolate_apps,
      override_settings, setup_test_environment,
  )
  from django.urls import NoReverseMatch, path, reverse, reverse_lazy
  from django.utils.log import DEFAULT_LOGGING
 
</s> remove from django.test.testcases import TestData
 </s> add from django.test.testcases import DatabaseOperationForbidden, TestData </s> remove         with self.assertRaisesMessage(AssertionError, expected_message):
 </s> add         with self.assertRaisesMessage(DatabaseOperationForbidden, expected_message): </s> remove         with self.assertRaisesMessage(AssertionError, message):
 </s> add         with self.assertRaisesMessage(DatabaseOperationForbidden, message): </s> remove         with self.assertRaisesMessage(AssertionError, expected_message):
 </s> add         with self.assertRaisesMessage(DatabaseOperationForbidden, expected_message):
from django.test.testcases import DatabaseOperationForbidden
      skipUnlessDBFeature,
  )
  from django.test.html import HTMLParseError, parse_html
from django.test.testcases import DatabaseOperationForbidden
  from django.test.utils import (
      CaptureQueriesContext, TestContextDecorator, isolate_apps,
      override_settings, setup_test_environment,
  )
  from django.urls import NoReverseMatch, path, reverse, reverse_lazy
  from django.utils.log import DEFAULT_LOGGING
keep keep add keep keep keep keep keep keep
 Fixed #33278 -- Improved error for connection/query attempts against disallowed databases in tests. 
tests/test_utils/tests.py