If I run pytest on code which includes django-localflavor 2.2, I get multiple occurrences of this error.
python3.7/site-packages/localflavor/gb/gb_regions.py:179: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
("Stirling", _("Stirling")),
If I run pytest on code which includes django-localflavor 2.2, I get multiple occurrences of this error.
I'll submit a PR to fix it.