Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 4dac0883f00ae7eb64c01488c53f50074efb9695 1 parent 44a2cba
@ramiro ramiro authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/modeltests/validation/test_unique.py
View
4 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 @@ def test_unique_errors(self):
with self.assertRaises(ValidationError) as cm:
m.full_clean()
self.assertEqual(cm.exception.message_dict, {'number': [u'Custom unique number message.']})
-
+
Please sign in to comment.
Something went wrong with that request. Please try again.