  from django.test import TestCase, override_settings
  from django.urls import resolve, reverse
  
  from rest_framework import permissions, serializers, viewsets
  from rest_framework.compat import get_regex_pattern
  from rest_framework.decorators import action
  from rest_framework.response import Response
  from rest_framework.routers import DefaultRouter, SimpleRouter
  from rest_framework.test import APIRequestFactory, URLPatternsTestCase
  from rest_framework.utils import json
 
</s> remove from rest_framework.compat import coreapi, coreschema, get_regex_pattern
 </s> add from rest_framework.compat import coreapi, coreschema </s> remove from django.urls import Resolver404, path, re_path
 </s> add from django.urls import Resolver404, URLResolver, path, re_path
from django.urls.resolvers import RegexPattern </s> remove from rest_framework.compat import make_url_resolver
 </s> add  </s> remove from rest_framework.compat import URLPattern, URLResolver, get_original_route
 </s> add 
  from django.test import TestCase, override_settings
  from django.urls import resolve, reverse
  
  from rest_framework import permissions, serializers, viewsets

  from rest_framework.decorators import action
  from rest_framework.response import Response
  from rest_framework.routers import DefaultRouter, SimpleRouter
  from rest_framework.test import APIRequestFactory, URLPatternsTestCase
  from rest_framework.utils import json
keep keep keep keep replace keep keep keep keep keep
 Drop all compat support to Django < 2 urls (#7337) 
tests/test_routers.py