[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods

2012-07-20 Thread Igor Sobreira
Igor Sobreira i...@igorsobreira.com added the comment: My previous patch is incorrect, talking to voidspace on irc self._top_leve_dir should be reverted to it's previous value so when discover is called the original value should be stored, then discovery done, and then the original restored

[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods

2012-07-20 Thread Igor Sobreira
Igor Sobreira i...@igorsobreira.com added the comment: Updated patch to restore previous value of ._top_level_dir on discover() done. And added a unit test. -- Added file: http://bugs.python.org/file26458/restore_top_level_dir_to_previous_value.patch

[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods

2012-07-19 Thread Igor Sobreira
Igor Sobreira i...@igorsobreira.com added the comment: Hello. I've attached a patch to cleanup self._top_level_dir in the end of discover(). Is that the expected behavior or I'm on the wrong track? -- keywords: +patch nosy: +igorsobreira Added file: http://bugs.python.org/file26442