diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2011-06-10 12:16:56 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2011-06-10 12:16:56 +0000 |
| commit | 4dac0883f00ae7eb64c01488c53f50074efb9695 (patch) | |
| tree | ba786fedb099b91104d89708dacafec5d0d94434 /tests | |
| parent | 44a2cbad35c9b43569ad3dcf43a3dd74dcd71953 (diff) | |
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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modeltests/validation/test_unique.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/modeltests/validation/test_unique.py b/tests/modeltests/validation/test_unique.py index ef890490c1..f891b5740e 100644 --- a/tests/modeltests/validation/test_unique.py +++ b/tests/modeltests/validation/test_unique.py @@ -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.']}) -
\ No newline at end of file + |
