From 4dac0883f00ae7eb64c01488c53f50074efb9695 Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Fri, 10 Jun 2011 12:16:56 +0000 Subject: [PATCH] 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 --- tests/modeltests/validation/test_unique.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 +