mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
This commit is contained in:
parent
17677d510f
commit
8119b679eb
42 changed files with 82 additions and 82 deletions
|
@ -23,7 +23,7 @@ class SplitDateTimeFieldTest(SimpleTestCase):
|
|||
f.clean('')
|
||||
with self.assertRaisesMessage(ValidationError, "'Enter a list of values.'"):
|
||||
f.clean('hello')
|
||||
with six.assertRaisesRegex(self, ValidationError, "'Enter a valid date\.', u?'Enter a valid time\.'"):
|
||||
with six.assertRaisesRegex(self, ValidationError, r"'Enter a valid date\.', u?'Enter a valid time\.'"):
|
||||
f.clean(['hello', 'there'])
|
||||
with self.assertRaisesMessage(ValidationError, "'Enter a valid time.'"):
|
||||
f.clean(['2006-01-10', 'there'])
|
||||
|
@ -43,7 +43,7 @@ class SplitDateTimeFieldTest(SimpleTestCase):
|
|||
self.assertIsNone(f.clean(['', '']))
|
||||
with self.assertRaisesMessage(ValidationError, "'Enter a list of values.'"):
|
||||
f.clean('hello')
|
||||
with six.assertRaisesRegex(self, ValidationError, "'Enter a valid date\.', u?'Enter a valid time\.'"):
|
||||
with six.assertRaisesRegex(self, ValidationError, r"'Enter a valid date\.', u?'Enter a valid time\.'"):
|
||||
f.clean(['hello', 'there'])
|
||||
with self.assertRaisesMessage(ValidationError, "'Enter a valid time.'"):
|
||||
f.clean(['2006-01-10', 'there'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue