Commits

Remy Blank committed 3568f7b

0.11-stable: Python 2.3 compatibility fix for test case from [8303] (`assertTrue()` was introduced in 2.4).

Comments (0)

Files changed (1)

trac/tests/config.py

 
 class ConfigurationTestCase(unittest.TestCase):
 
+    if not hasattr(unittest.TestCase, "assertTrue"):
+        assertTrue = unittest.TestCase.failUnless   # Python 2.3 compatibility
+
     def setUp(self):
         self.filename = os.path.join(tempfile.gettempdir(), 'trac-test.ini')
         self._write([])