assertTrue, assertFalse cause unittest fail on older Python
Status: Beta
Brought to you by:
patrickdlogan
The jsontest.py unittest module contains calls to
self.assertTrue() and self.assertFalse() which are new
in Python 2.4, so the unittest fails on older Pythons
such as 2.3.5 which many places are still using
(because of Zope for example).
I've attached a minor two-line patch which allows the
unittests to run on older Pythons.
Patch to allow unittests to run on older Pythons
Logged In: YES
user_id=661556
As of release 3_2 jsontest.py uses the patch for this bug
and there are no new uses of assertTrue/False.