              self.get_constraints(ModelWithExclusionConstraint._meta.db_table),
          )
  
  
  @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
  class ExclusionConstraintOpclassesDepracationTests(PostgreSQLTestCase):
      def get_constraints(self, table):
          """Get the constraints on the table using a new cursor."""
          with connection.cursor() as cursor:
              return connection.introspection.get_constraints(cursor, table)
 
</s> remove @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
 </s> add  </s> remove @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
 </s> add  </s> remove @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
 </s> add  </s> remove @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
 </s> add  </s> remove @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
 </s> add 
              self.get_constraints(ModelWithExclusionConstraint._meta.db_table),
          )
  
  

  class ExclusionConstraintOpclassesDepracationTests(PostgreSQLTestCase):
      def get_constraints(self, table):
          """Get the constraints on the table using a new cursor."""
          with connection.cursor() as cursor:
              return connection.introspection.get_constraints(cursor, table)
keep keep keep keep replace keep keep keep keep keep
 Refs #33308 -- Ensured type handlers are registered for all PostgreSQL specific tests.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> 
tests/postgres_tests/test_constraints.py