[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods
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 I'll work on this one. He also pointed out that this bugfix should be backported to 2.7 and 3.2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods
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/restore_top_level_dir.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com