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

Removed tests for django.utils.unittest vs. unittest.

Silenced warnings caused by the deprecation of django.utils.unittest.

Thanks Preston Timmons and Carl Meyer for their advice.

Fixed #20680.
This commit is contained in:
Aymeric Augustin
2013-07-01 21:49:11 +02:00
parent a521d10322
commit 909433fa50
7 changed files with 23 additions and 49 deletions

View File

@@ -12,7 +12,7 @@ from django.core.management import call_command
from django import db
from django.test import runner, TestCase, TransactionTestCase, skipUnlessDBFeature
from django.test.testcases import connections_support_transactions
from django.test.utils import IgnoreDeprecationWarningsMixin
from django.test.utils import IgnoreAllDeprecationWarningsMixin
from django.utils.importlib import import_module
from admin_scripts.tests import AdminScriptTestCase
@@ -225,7 +225,8 @@ class Ticket17477RegressionTests(AdminScriptTestCase):
self.assertNoOutput(err)
class ModulesTestsPackages(IgnoreDeprecationWarningsMixin, unittest.TestCase):
class ModulesTestsPackages(IgnoreAllDeprecationWarningsMixin, unittest.TestCase):
def test_get_tests(self):
"Check that the get_tests helper function can find tests in a directory"
from django.test.simple import get_tests