Closed adamantike closed 4 months ago
Having the TestCase class as part of compat makes applications require to import the django.test path and any downstream dependencies.
TestCase
compat
django.test
This is adding import time to time-sensitive executions, which can be avoided as TestCase is only used for internal testing.
Sure! I created #1643 to drop support for Django <4.2 and Python <3.8.
Closing in favour of #1643
Having the
TestCase
class as part ofcompat
makes applications require to import thedjango.test
path and any downstream dependencies.This is adding import time to time-sensitive executions, which can be avoided as
TestCase
is only used for internal testing.