summaryrefslogtreecommitdiff
path: root/tests/field_deconstruction
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-09-16 12:15:00 -0400
committerTim Graham <timograham@gmail.com>2016-09-17 15:44:06 -0400
commit8119b679eb85cdc0ae3d321e54d06dd0200a1e82 (patch)
treeb4f4e40a371569a260a39ca310e8e984d8582d74 /tests/field_deconstruction
parent17677d510f65012531a5af57fd056fb15cfe1067 (diff)
downloaddjango-8119b679eb85cdc0ae3d321e54d06dd0200a1e82.tar.gz
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
Diffstat (limited to 'tests/field_deconstruction')
-rw-r--r--tests/field_deconstruction/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/field_deconstruction/tests.py b/tests/field_deconstruction/tests.py
index 6f4b9fd2cd..1a6385dbf9 100644
--- a/tests/field_deconstruction/tests.py
+++ b/tests/field_deconstruction/tests.py
@@ -158,11 +158,11 @@ class FieldDeconstructionTests(SimpleTestCase):
self.assertEqual(kwargs, {"upload_to": "foo/bar", "max_length": 200})
def test_file_path_field(self):
- field = models.FilePathField(match=".*\.txt$")
+ field = models.FilePathField(match=r".*\.txt$")
name, path, args, kwargs = field.deconstruct()
self.assertEqual(path, "django.db.models.FilePathField")
self.assertEqual(args, [])
- self.assertEqual(kwargs, {"match": ".*\.txt$"})
+ self.assertEqual(kwargs, {"match": r".*\.txt$"})
field = models.FilePathField(recursive=True, allow_folders=True, max_length=123)
name, path, args, kwargs = field.deconstruct()
self.assertEqual(path, "django.db.models.FilePathField")