mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
This commit is contained in:
@@ -20,7 +20,6 @@ from django.urls import (
|
||||
NoReverseMatch, RegexURLPattern, RegexURLResolver, Resolver404,
|
||||
ResolverMatch, get_callable, get_resolver, resolve, reverse, reverse_lazy,
|
||||
)
|
||||
from django.utils import six
|
||||
|
||||
from . import middleware, urlconf_outer, views
|
||||
from .utils import URLObject
|
||||
@@ -336,13 +335,6 @@ class URLPatternReverse(SimpleTestCase):
|
||||
'/script:name/optional/foo:bar/'
|
||||
)
|
||||
|
||||
def test_reverse_returns_unicode(self):
|
||||
name, expected, args, kwargs = test_data[0]
|
||||
self.assertIsInstance(
|
||||
reverse(name, args=args, kwargs=kwargs),
|
||||
six.text_type
|
||||
)
|
||||
|
||||
def test_view_not_found_message(self):
|
||||
msg = (
|
||||
"Reverse for 'non-existent-view' not found. 'non-existent-view' "
|
||||
|
||||
Reference in New Issue
Block a user