mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings to DeprecationWarnings, and removed 1.1 deprecated code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -67,7 +67,8 @@ class DeprecatedEggLoaderTest(unittest.TestCase):
|
||||
})
|
||||
self._old_installed_apps = settings.INSTALLED_APPS
|
||||
settings.INSTALLED_APPS = []
|
||||
warnings.simplefilter("ignore", PendingDeprecationWarning)
|
||||
warnings.filterwarnings("ignore", category=DeprecationWarning,
|
||||
module='django.template.loaders.eggs')
|
||||
|
||||
def tearDown(self):
|
||||
settings.INSTALLED_APPS = self._old_installed_apps
|
||||
@@ -79,6 +80,8 @@ class DeprecatedEggLoaderTest(unittest.TestCase):
|
||||
contents, template_name = lts_egg("y.html")
|
||||
self.assertEqual(contents, "y")
|
||||
self.assertEqual(template_name, "egg:egg_1:templates/y.html")
|
||||
warnings.resetwarnings()
|
||||
warnings.simplefilter("ignore", PendingDeprecationWarning)
|
||||
|
||||
|
||||
class EggLoaderTest(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user