[issue40690] unittest: if FunctionTestCase is imported, the loader loads "tests" from it

2020-05-22 Thread Vitalii
Vitalii added the comment: I don't think anyone is using FunctionTestCase -- ___ Python tracker <https://bugs.python.org/issue40690> ___ ___ Python-bugs-list m

[issue40690] unittest: if FunctionTestCase is imported, the loader loads "tests" from it

2020-05-21 Thread Vitalii
Vitalii added the comment: If you make an import in a module with your tests >From unittest import FunctionTestCase then you will have 1 extra test in that module (the imported one), moreover, that test will be broken. -- ___ Python trac

[issue40690] unittest: if FunctionTestCase is imported, the loader loads "tests" from it

2020-05-19 Thread Vitalii
Change by Vitalii : -- keywords: +patch pull_requests: +19524 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20237 ___ Python tracker <https://bugs.python.org/issu

[issue40690] unittest: if FunctionTestCase is imported, the loader loads "tests" from it

2020-05-19 Thread Vitalii
New submission from Vitalii : In [2]: from unittest import FunctionTestCase In [3]: loader.loadTestsFromTestCase