mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
This commit is contained in:
@@ -98,7 +98,7 @@ class IfEqualTagTests(SimpleTestCase):
|
||||
|
||||
@setup({'ifequal-split09': r"{% ifequal a 'slash\man' %}yes{% else %}no{% endifequal %}"})
|
||||
def test_ifequal_split09(self):
|
||||
output = self.engine.render_to_string('ifequal-split09', {'a': 'slash\man'})
|
||||
output = self.engine.render_to_string('ifequal-split09', {'a': r'slash\man'})
|
||||
self.assertEqual(output, 'yes')
|
||||
|
||||
@setup({'ifequal-split10': r"{% ifequal a 'slash\man' %}yes{% else %}no{% endifequal %}"})
|
||||
|
||||
Reference in New Issue
Block a user