我知道Nose 是这样使用的: from nose.tools import assert_raises def add(x, y): return x + y assert_raises(TypeError, add, 2, "0") 我只是找不到nose2的等效使用 ...
確定! 回上一頁