mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #23522 -- Changed reverse() to return a Unicode string; not bytes
This commit is contained in:
@@ -222,6 +222,13 @@ class URLPatternReverse(TestCase):
|
||||
# exception
|
||||
self.fail("Expected a NoReverseMatch, but none occurred.")
|
||||
|
||||
def test_reverse_returns_unicode(self):
|
||||
name, expected, args, kwargs = test_data[0]
|
||||
self.assertIsInstance(
|
||||
reverse(name, args=args, kwargs=kwargs),
|
||||
six.text_type
|
||||
)
|
||||
|
||||
|
||||
class ResolverTests(unittest.TestCase):
|
||||
def test_resolver_repr(self):
|
||||
|
||||
Reference in New Issue
Block a user