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

前端 未结 6 572
广开言路
广开言路 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条回答
  •  孤街浪徒
    2020-12-13 23:51

    You set maxDiff to None.

    But you will have to actually use a unittest.TestCase for your tests for that to work. This should work.

    class MyTest(unittest.TestCase):
    
        maxDiff = None
    
        def test_diff(self):
              
    

提交回复
热议问题