Menu

#5 assertTrue, assertFalse cause unittest fail on older Python

closed-fixed
nobody
None
5
2005-08-06
2005-05-21
No

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.

Discussion

  • Barry Pederson

    Barry Pederson - 2005-05-21

    Patch to allow unittests to run on older Pythons

     
  • Patrick D Logan

    Patrick D Logan - 2005-08-06
    • status: open --> closed-fixed
     
  • Patrick D Logan

    Patrick D Logan - 2005-08-06

    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.

     

Log in to post a comment.