Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.py

https://code.djangoproject.com/ticket/23923
You could remove `record=True` here too.