[issue45177] Use shared test loader when possible when running test suite

2021-09-13 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Also, TestLoader has mutable attribute "errors". I am not sure that it is > good idea to share it between unrelated tests. Noted. I'm closing this. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed _

[issue45177] Use shared test loader when possible when running test suite

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue45181. Most of this code is gone. Also, TestLoader has mutable attribute "errors". I am not sure that it is good idea to share it between unrelated tests. -- ___ Python tracker

[issue45177] Use shared test loader when possible when running test suite

2021-09-12 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +26715 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28301 ___ Python tracker __

[issue45177] Use shared test loader when possible when running test suite

2021-09-12 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Use unittest.defaultTestLoader instead of unittest.TestLoader() when possible, to avoid creating unnecessary many instances. -- components: Tests messages: 401674 nosy: erlendaasland, serhiy.storchaka priority: normal severity: normal status: ope