mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Made with
statements added in [16348] compatible with Python 2.5.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
44a2cbad35
commit
4dac0883f0
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
from __future__ import with_statement
|
||||
|
||||
import datetime
|
||||
|
||||
from django.conf import settings
|
||||
|
@ -143,4 +145,4 @@ class PerformUniqueChecksTest(TestCase):
|
|||
with self.assertRaises(ValidationError) as cm:
|
||||
m.full_clean()
|
||||
self.assertEqual(cm.exception.message_dict, {'number': [u'Custom unique number message.']})
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue