  import pytest
  from django.conf.urls import include, url
  from django.test import override_settings
  
  from rest_framework import serializers, status, versioning
  from rest_framework.decorators import APIView
  from rest_framework.relations import PKOnlyObject
 
</s> remove from django.conf.urls import include, url
 </s> add from django.conf.urls import url </s> remove from django.conf.urls import include, url
 </s> add from django.conf.urls import url </s> remove from rest_framework.compat import RegexURLResolver
 </s> add from rest_framework.compat import RegexURLResolver, include
from django.conf.urls import url
  import pytest
from django.conf.urls import url
  from django.test import override_settings
  
  from rest_framework import serializers, status, versioning
  from rest_framework.decorators import APIView
  from rest_framework.relations import PKOnlyObject
keep replace keep keep keep keep keep
 Fixed Django 2.0 compatibility due to `django.conf.urls.include` parameters change. (#4866) 
tests/test_versioning.py