mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
This commit is contained in:
@@ -411,7 +411,7 @@ class LookupTests(TestCase):
|
||||
Article.objects.create(headline='Article with \\ backslash', pub_date=datetime(2005, 11, 22))
|
||||
self.assertQuerysetEqual(
|
||||
Article.objects.filter(headline__contains='\\'),
|
||||
['<Article: Article with \ backslash>']
|
||||
[r'<Article: Article with \ backslash>']
|
||||
)
|
||||
|
||||
def test_exclude(self):
|
||||
|
||||
Reference in New Issue
Block a user