          def simple_fbv(request):
              pass
  
          patterns = [
              url(r'^test/list/', simple_fbv),
              url(r'^test/(?P<pk>\d+)/list/', simple_fbv),
          ]
  
          generator = SchemaGenerator(title='Naming Colisions', patterns=patterns)
          schema = generator.get_schema()
  
 
</s> remove             url(r'^test', simple_fbv),
            url(r'^test/list/', simple_fbv),
 </s> add             path('test', simple_fbv),
            path('test/list/', simple_fbv), </s> remove             url(r'from-router', include(naming_collisions_router.urls)),
 </s> add             path('from-router', include(naming_collisions_router.urls)), </s> remove             url(r'example/(?P<pk>\d+)/$', BasicNamingCollisionView.as_view()),
            url(r'example/(?P<slug>\w+)/$', BasicNamingCollisionView.as_view()),
 </s> add             path('example/<int:pk>/', BasicNamingCollisionView.as_view()),
            path('example/<str:slug>/', BasicNamingCollisionView.as_view()), </s> remove             url(r'^test/get/', NamingCollisionView.as_view()),
            url(r'^test/put/', NamingCollisionView.as_view()),
            url(r'^test/delete/', NamingCollisionView.as_view()),
 </s> add             path('test/get/', NamingCollisionView.as_view()),
            path('test/put/', NamingCollisionView.as_view()),
            path('test/delete/', NamingCollisionView.as_view()), </s> remove             url(r'^api-token-auth/', obtain_auth_token)
 </s> add             path('api-token-auth/', obtain_auth_token)
            path('test/list/', simple_fbv),
            path('test/<int:pk>/list/', simple_fbv),
          def simple_fbv(request):
              pass
  
          patterns = [
            path('test/list/', simple_fbv),
            path('test/<int:pk>/list/', simple_fbv),
            path('test/list/', simple_fbv),
            path('test/<int:pk>/list/', simple_fbv),
          ]
  
          generator = SchemaGenerator(title='Naming Colisions', patterns=patterns)
          schema = generator.get_schema()
  
keep keep keep keep replace replace keep keep keep keep keep
 Replace all url() calls with path() or re_path() (#7512)

* url() is deprecated in Django 3.1

* update given feedbacks on url() is deprecated in Django 3.1

* Fix test_urlpatterns.py to continue testing mixed re_path() and path()

* Fix one missed reference

Co-authored-by: sanjusci <sanju.sci9@gmail.com> 
tests/schemas/test_coreapi.py