  
      def test_included_urls_django2_mixed_args(self):
          nested_patterns = [
              path('path/<int:child>', dummy_view),
              url('^url/(?P<child>[0-9]+)$', dummy_view)
          ]
          urlpatterns = [
              url('^purl/(?P<parent>[0-9]+)/', include(nested_patterns), {'foo': 'bar'}),
              path('ppath/<int:parent>/', include(nested_patterns), {'foo': 'bar'}),
          ]
 
</s> remove     def test_included_urls_django2_mixed(self):
        nested_patterns = [
            path('path', dummy_view)
        ]
        urlpatterns = [
            url('^test/', include(nested_patterns), {'foo': 'bar'}),
        ]
        self._test_included_urls(urlpatterns)

    def test_included_urls_django2_mixed_args(self):
 </s> add     def test_included_urls_mixed(self): </s> remove             url('^purl/(?P<parent>[0-9]+)/', include(nested_patterns), {'foo': 'bar'}),
 </s> add             re_path(r'^pre_path/(?P<parent>[0-9]+)/', include(nested_patterns), {'foo': 'bar'}), </s> remove         nested_patterns = [
            url(r'^path$', dummy_view)
        ]
        urlpatterns = [
            url(r'^test/', include(nested_patterns), {'foo': 'bar'}),
        ]
        self._test_included_urls(urlpatterns)

    def test_included_urls_django2(self):
 </s> add  </s> remove             url(r'^test$', dummy_view, {'foo': 'bar'}),
 </s> add             path('test', dummy_view, {'foo': 'bar'}), </s> remove             # parent url() nesting child path()
            URLTestPath('/purl/87/path/42', (), {'parent': '87', 'child': 42, 'foo': 'bar', }),
            URLTestPath('/purl/87/path/42.api', (), {'parent': '87', 'child': 42, 'foo': 'bar', 'format': 'api'}),
            URLTestPath('/purl/87/path/42.asdf', (), {'parent': '87', 'child': 42, 'foo': 'bar', 'format': 'asdf'}),
 </s> add             # parent re_path() nesting child path()
            URLTestPath('/pre_path/87/path/42', (), {'parent': '87', 'child': 42, 'foo': 'bar', }),
            URLTestPath('/pre_path/87/path/42.api', (), {'parent': '87', 'child': 42, 'foo': 'bar', 'format': 'api'}),
            URLTestPath('/pre_path/87/path/42.asdf', (), {'parent': '87', 'child': 42, 'foo': 'bar', 'format': 'asdf'}),
            re_path(r'^re_path/(?P<child>[0-9]+)$', dummy_view)
  
      def test_included_urls_django2_mixed_args(self):
          nested_patterns = [
              path('path/<int:child>', dummy_view),
            re_path(r'^re_path/(?P<child>[0-9]+)$', dummy_view)
          ]
          urlpatterns = [
              url('^purl/(?P<parent>[0-9]+)/', include(nested_patterns), {'foo': 'bar'}),
              path('ppath/<int:parent>/', include(nested_patterns), {'foo': 'bar'}),
          ]
keep keep keep keep 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/test_urlpatterns.py