mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from django.shortcuts import resolve_url
|
||||
from django.test import SimpleTestCase, override_settings
|
||||
from django.urls import NoReverseMatch, reverse_lazy
|
||||
from django.utils import six
|
||||
|
||||
from .models import UnimportantThing
|
||||
from .urls import some_view
|
||||
@@ -57,7 +56,7 @@ class ResolveUrlTests(SimpleTestCase):
|
||||
string.
|
||||
"""
|
||||
resolved_url = resolve_url(reverse_lazy('some-view'))
|
||||
self.assertIsInstance(resolved_url, six.text_type)
|
||||
self.assertIsInstance(resolved_url, str)
|
||||
self.assertEqual('/some-url/', resolved_url)
|
||||
|
||||
def test_valid_view_name(self):
|
||||
|
||||
Reference in New Issue
Block a user