summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lookup/tests.py b/tests/lookup/tests.py
index fe8a5fac64..ee9c5afe1d 100644
--- a/tests/lookup/tests.py
+++ b/tests/lookup/tests.py
@@ -625,6 +625,13 @@ class LookupTests(TestCase):
self.assertQuerysetEqual(Season.objects.filter(gt__regex=r'^444$'),
['<Season: 2013>'])
+ def test_regex_non_ascii(self):
+ """
+ Ensure that a regex lookup does not trip on non-ascii characters.
+ """
+ Player.objects.create(name='\u2660')
+ Player.objects.get(name__regex='\u2660')
+
def test_nonfield_lookups(self):
"""
Ensure that a lookup query containing non-fields raises the proper