HI,<div><br></div><div>Thanks for all the help so far.</div><div><br></div><div>Here is the repo: <a href="https://bitbucket.org/yeukhon/bitbucket-python-api/src/6e57e95d5d09/tests/small?at=default">https://bitbucket.org/yeukhon/bitbucket-python-api/src/6e57e95d5d09/tests/small?at=default</a></div>
<div><br></div><div>I have a base unit test class in base.py.  For test_bitbucket.py, I inherit from the base unit test class.</div><div>I want to add new test cases and classes to test_bitbucket.py While doing so, I discovered performance issue.</div>
<div><br></div><div>I ran `nosetests` inside tests/small and I am getting these mix results</div><div><br></div><div><br></div><div>Ran 18 tests in 14.523s        - autospec=True and test_account_creation exists</div><div>
<div><br></div></div><div>Ran 18 tests in 0.621s         - autospec=False and test_account_creation_exists</div><div><br></div><div><br></div><div>Ran 17 tests in 1.081s         - autospec=True and test_account_creation is deleted</div>
<div><br></div><div><div>Ran 17 tests in 0.090s         - autospec=False, and test_account_creation is deleted</div></div><div><br></div><div><br></div><div>I understand requests is a big library, but the performance hit is crazy, going from 1.1s to 14.5s with and without the new test class, respectively.</div>
<div><br></div><div>Interestingly, if we run test_bitbucket.py individually.</div><div><br></div><div><div>(bbpy)yeukhon@yeukhon-P5E-VM-DO:~/hg/bitbucket-python-api/tests/small$ nosetests test_bitbucket.py</div><div>...</div>
<div>----------------------------------------------------------------------</div><div>Ran 3 tests in 0.090s</div><div><br></div><div>OK</div></div><div><br></div><div><br></div><div>Pretty much the same with/without autospec on.</div>
<div><br></div><div>Any idea? I don&#39;t know enough about nosetests internal.</div><div><br></div><div>Thanks!</div><div><br></div><div>John</div>