test: adapt to coverage.py 6.0 changes
test: adapt to coverage.py 6.0 changes

Coverage.py 6.0 issues true Python warnings instead of just printing to
stderr, so the tests have to adapt based on the coverage version.

nedbat/django_coverage_plugin