How to set self.maxDiff in nose to get full diff output?

前端 未结 6 563
广开言路
广开言路 2020-12-13 23:12

When using nose 1.2.1 with Python 3.3.0, I sometimes get an error message similar to the following one

======================================================         


        
6条回答
  •  猫巷女王i
    2020-12-13 23:29

    In python 2.7.3, nose 1.3.0, doing the following is working for me:

    assert_equal.im_class.maxDiff = None
    assert_equal(huge_thing, other_huge_thing)
    

提交回复
热议问题