              (JSONBAgg('integer_field'), []),
              (StringAgg('char_field', delimiter=';'), ''),
          ]
          for aggregation, expected_result in tests:
              with self.subTest(aggregation=aggregation):
                  # Empty result with non-execution optimization.
                  with self.assertNumQueries(0):
                      values = AggregateTestModel.objects.none().aggregate(
 
</s> remove     'ArrayAgg', 'BitAnd', 'BitOr', 'BoolAnd', 'BoolOr', 'JSONBAgg', 'StringAgg',
 </s> add     'ArrayAgg', 'BitAnd', 'BitOr', 'BitXor', 'BoolAnd', 'BoolOr', 'JSONBAgg',
    'StringAgg',
        if connection.features.has_bit_xor:
            tests.append((BitXor('integer_field'), None))
              (JSONBAgg('integer_field'), []),
              (StringAgg('char_field', delimiter=';'), ''),
          ]
        if connection.features.has_bit_xor:
            tests.append((BitXor('integer_field'), None))
          for aggregation, expected_result in tests:
              with self.subTest(aggregation=aggregation):
                  # Empty result with non-execution optimization.
                  with self.assertNumQueries(0):
                      values = AggregateTestModel.objects.none().aggregate(
keep keep add keep keep keep keep keep
 Fixed #32961 -- Added BitXor() aggregate to django.contrib.postgres. 
tests/postgres_tests/test_aggregates.py