擅长:python、mysql、java
<p>试试这个:</p>
<pre><code>class TestingClass(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestingClass, self).__init__(*args, **kwargs)
self.gen_stubs()
</code></pre>
<p>您正在重写<code>TestCase</code>的<code>__init__</code>,因此您可能希望让基类为您处理参数。</p>