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,7 @@
|
||||
import json
|
||||
|
||||
from django.test import SimpleTestCase
|
||||
from django.utils import six, text
|
||||
from django.utils import text
|
||||
from django.utils.functional import lazystr
|
||||
from django.utils.text import format_lazy
|
||||
from django.utils.translation import override, ugettext_lazy
|
||||
@@ -161,7 +161,6 @@ class TestUtilsText(SimpleTestCase):
|
||||
"""normalize_newlines should be able to handle bytes too"""
|
||||
normalized = text.normalize_newlines(b"abc\ndef\rghi\r\n")
|
||||
self.assertEqual(normalized, "abc\ndef\nghi\n")
|
||||
self.assertIsInstance(normalized, six.text_type)
|
||||
|
||||
def test_phone2numeric(self):
|
||||
numeric = text.phone2numeric('0800 flowers')
|
||||
|
||||
Reference in New Issue
Block a user