Commits

Mikhail Korobov  committed dc44942

Python 2.5 compatibility. Fix #40.

  • Participants
  • Parent commits 3e82276

Comments (0)

Files changed (1)

File admin_tools/tests.py

+from __future__ import with_statement
 import warnings
 from unittest import TestCase
 
 class DeprecationTest(TestCase):
+    # python >= 2.6 is required to make deprecation warning tests useful
+    # this DeprecationTest is always successful for python < 2.6
 
     def assertDeprecated(self, cls, *args, **kwargs):
         if hasattr(warnings, 'catch_warnings'):