mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Marked bytestrings with b prefix. Refs #18269
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
This commit is contained in:
@@ -54,7 +54,7 @@ class StringLookupTests(TestCase):
|
||||
self.assertEqual(Foo.objects.get(friend__contains=u'\xe7'), fx)
|
||||
|
||||
# We can also do the above query using UTF-8 strings.
|
||||
self.assertEqual(Foo.objects.get(friend__contains='\xc3\xa7'), fx)
|
||||
self.assertEqual(Foo.objects.get(friend__contains=b'\xc3\xa7'), fx)
|
||||
|
||||
def test_queries_on_textfields(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user