1
0
mirror of https://github.com/django/django.git synced 2025-10-29 08:36:09 +00:00

Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Claude Paroz
2012-03-30 08:02:08 +00:00
parent 8bb5b60628
commit 9383a2761c
73 changed files with 35 additions and 104 deletions

View File

@@ -1,5 +1,3 @@
from __future__ import with_statement
from django.contrib import admin
from django.utils.unittest import TestCase
@@ -19,4 +17,4 @@ class Bug8245Test(TestCase):
# the first time, not an AlreadyRegistered error.
with self.assertRaises(Exception) as cm:
admin.autodiscover()
self.assertEqual(str(cm.exception), "Bad admin module")
self.assertEqual(str(cm.exception), "Bad admin module")