Refs #20739. Thanks Raphaël Hertzog for the report and the initial patch.
Do this by introducing a django.contrib.staticfiles.testing.StaticLiveServerCase unittest TestCase subclass. Fixes #20739.