  import unittest
  
  from django.db import connection, transaction
  from django.db.models import Avg, StdDev, Sum, Variance
  from django.db.models.fields import CharField
  from django.db.utils import NotSupportedError
  from django.test import (
      TestCase, TransactionTestCase, override_settings, skipIfDBFeature,
  )
 
</s>
from django.db.models.aggregates import Aggregate
  import unittest
  
  from django.db import connection, transaction
  from django.db.models import Avg, StdDev, Sum, Variance
from django.db.models.aggregates import Aggregate
  from django.db.models.fields import CharField
  from django.db.utils import NotSupportedError
  from django.test import (
      TestCase, TransactionTestCase, override_settings, skipIfDBFeature,
  )
keep keep keep add keep keep keep keep keep
 Fixed #28658 -- Added DISTINCT handling to the Aggregate class.
tests/backends/sqlite/tests.py