mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16: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 @@
|
||||
import datetime
|
||||
import unittest
|
||||
|
||||
from django.utils import six
|
||||
from django.utils.encoding import (
|
||||
escape_uri_path, filepath_to_uri, force_bytes, force_text, iri_to_uri,
|
||||
smart_text, uri_to_iri,
|
||||
@@ -27,7 +26,7 @@ class TestEncodingUtils(unittest.TestCase):
|
||||
|
||||
def test_force_text_lazy(self):
|
||||
s = SimpleLazyObject(lambda: 'x')
|
||||
self.assertTrue(issubclass(type(force_text(s)), six.text_type))
|
||||
self.assertTrue(issubclass(type(force_text(s)), str))
|
||||
|
||||
def test_force_bytes_exception(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user