Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.5.x] Skipped deprecation warning test on Python 2.6

Refs #19546. On Python 2.6, DeprecationWarnings are visible by
Backport of e694937 from master.
  • Loading branch information...
1 parent af8e858 commit 785ec24720b3d7b38cf683f298b730c0c4014ac9 @claudep claudep committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/regressiontests/test_runner/
4 tests/regressiontests/test_runner/
@@ -3,6 +3,7 @@
from __future__ import absolute_import
+import sys
from optparse import make_option
from django.core.exceptions import ImproperlyConfigured
@@ -293,11 +294,14 @@ def test_runner_deprecation_verbosity_default(self):
out, err = self.run_django_admin(args)
self.assertTrue("DeprecationWarning: warning from test" in err)
+ @unittest.skipIf(sys.version_info[:2] == (2, 6),
+ "On Python 2.6, DeprecationWarnings are visible anyway")
def test_runner_deprecation_verbosity_zero(self):
args = ['test', '--settings=regressiontests.settings', '--verbosity=0']
out, err = self.run_django_admin(args)
self.assertFalse("DeprecationWarning: warning from test" in err)
class AutoIncrementResetTest(TransactionTestCase):
Here we test creating the same model two times in different test methods,

0 comments on commit 785ec24

Please sign in to comment.
Something went wrong with that request. Please try again.