mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #20746 -- Removed Python 2.6 specific code/docs
This commit is contained in:
parent
0d81fd0e5f
commit
2456ffa42c
14 changed files with 25 additions and 164 deletions
|
@ -19,7 +19,6 @@ from admin_scripts.tests import AdminScriptTestCase
|
|||
|
||||
from .logconfig import MyEmailBackend
|
||||
|
||||
PYVERS = sys.version_info[:2]
|
||||
|
||||
# logging config prior to using filter with mail_admins
|
||||
OLD_LOGGING = {
|
||||
|
@ -87,7 +86,6 @@ class DefaultLoggingTest(TestCase):
|
|||
self.logger.error("Hey, this is an error.")
|
||||
self.assertEqual(output.getvalue(), 'Hey, this is an error.\n')
|
||||
|
||||
@skipUnless(PYVERS > (2,6), "warnings captured only in Python >= 2.7")
|
||||
class WarningLoggerTests(TestCase):
|
||||
"""
|
||||
Tests that warnings output for DeprecationWarnings is enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue