Re: [Pyunit-interest] ANN: PyUnitTestBrowser
Brought to you by:
purcell
From: Phlip <ppl...@om...> - 2002-06-06 15:49:41
|
Fred L. Drake, Jr. sez: > What's wrong with shutil.rmtree() ? What's wrong with it is I never heard of it. I'l work on this issue for a while and see if I eventually hear of it. > > The bug is 'reload(module)' often does not work. > > We need more information than this! What do you mean? Do you have a > reproducible test case? It's a general request for help, that Steve answered very specifically. If I need to reload the same way other test runners reload, then I need to ask the question in general to someone who has already covered that area. His answer was to take a snapshot of all the modules loaded before the test runner starts testing, and then to return to this state at reload time by whacking every module not in the snapshot. No further request for assistance implied. > > When a file changes I whack its self.myModule handle, and all the > > children below it in the tree and build them again. But Python's > > infamous > > Did you leave something off here? ...module import ability leaves bits of the old modules strewn around memory, as does its infamous garbage collection system. Objects created from old modules with positive reference counts remain, figuratively "next to" the ones created from new modules. -- Phlip http://www.greencheese.org/PhilosophyBrethrenThree "Nothing is more despicable than respect based on fear." -- Albert Camus |