assertEquals vs. assertEqual in python

前端 未结 5 1742
北荒
北荒 2020-12-23 08:21

Is there a difference between assertEquals and assertEqual in the python unittest.TestCase?

And if there is not, why are there

5条回答
  •  北海茫月
    2020-12-23 09:10

    Not just for Python 3.x, since Python 2.7 assertEquals has been deprecated as well:

    Method Name            | Deprecated alias(es)
    _________________________________________________________
    assertEqual()          | failUnlessEqual, assertEquals
    

    From 25.3.7.1.1. Deprecated aliases

提交回复
热议问题