mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #23522 -- Changed reverse() to return a Unicode string; not bytes
This commit is contained in:
parent
d1e87aebf7
commit
c1ef234e31
3 changed files with 13 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue