Test Suites is failing due to this error and this module is not present in any version of 4.1.x or 4.2.x

Traceback (most recent call last):
  File "./runtests.py", line 31, in <module>
    from django.utils.deprecation import (
ImportError: cannot import name 'RemovedInDjango51Warning' from 'django.utils.deprecation' (/home/kartikey/.virtualenvs/djangodev/lib/python3.8/site-packages/django/utils/deprecation.py)

It’s present in version 4.2

Can you explain how you installed django and how you are running tests ? You seem to run the django test suite so I would expect you have a clone of Django’s git and django installed in editable mode, but that’s not consistent with the traceback which shows Django in the site-packages of your venv.