mirror of https://github.com/django/django.git
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,3 +1,5 @@
|
||||||
|
from __future__ import with_statement
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
@ -143,4 +145,4 @@ class PerformUniqueChecksTest(TestCase):
|
||||||
with self.assertRaises(ValidationError) as cm:
|
with self.assertRaises(ValidationError) as cm:
|
||||||
m.full_clean()
|
m.full_clean()
|
||||||
self.assertEqual(cm.exception.message_dict, {'number': [u'Custom unique number message.']})
|
self.assertEqual(cm.exception.message_dict, {'number': [u'Custom unique number message.']})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue