mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Renamed RemovedInDjangoXYWarnings for new roadmap.
Forwardport of ae1d663b79
from stable/1.8.x plus more.
This commit is contained in:
@@ -9,7 +9,7 @@ from django.test import SimpleTestCase, ignore_warnings, override_settings
|
||||
from django.test.utils import captured_stderr, captured_stdout, extend_sys_path
|
||||
from django.utils import translation
|
||||
from django.utils._os import upath
|
||||
from django.utils.deprecation import RemovedInDjango20Warning
|
||||
from django.utils.deprecation import RemovedInDjango110Warning
|
||||
from django.utils.six import StringIO
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ class CommandTests(SimpleTestCase):
|
||||
self.assertNotIn("opt_3", out.getvalue())
|
||||
self.assertNotIn("opt-3", out.getvalue())
|
||||
|
||||
@ignore_warnings(category=RemovedInDjango20Warning)
|
||||
@ignore_warnings(category=RemovedInDjango110Warning)
|
||||
def test_optparse_compatibility(self):
|
||||
"""
|
||||
optparse should be supported during Django 1.8/1.9 releases.
|
||||
|
||||
Reference in New Issue
Block a user