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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user