[issue22293] mock could be less memory-intensive

2014-08-28 Thread James Westby
New submission from James Westby: Hi, I'm looking in to the memory usage of our testsuite, which does a fair amount of def setUp(): patcher = patch.multiple(...) self.mock_whatever = patcher.start() self.addCleanup(patcher.stop) or other ways of creating a mock

[issue7501] python -m unittest path_to_suite_function errors

2010-08-20 Thread James Westby
James Westby jw+deb...@jameswestby.net added the comment: Hi, I think this was misdiagnosed: from unittest.py in 2.6, loadTestFromName: elif hasattr(obj, '__call__'): test = obj() if isinstance(test, TestSuite): return test elif