Message369386
In [2]: from unittest import FunctionTestCase
In [3]: loader.loadTestsFromTestCase(FunctionTestCase)
Out[3]: <unittest.suite.TestSuite tests=[<unittest.case.FunctionTestCase tec=runTest>]>
In [4]: test = _._tests[0]; test
Out[4]: <unittest.case.FunctionTestCase tec=runTest>
In [5]: test._testFunc
Out[5]: 'runTest'
In [6]: test._testFunc.__name__
*** AttributeError: 'str' object has no attribute '__name__' |
|
Date |
User |
Action |
Args |
2020-05-19 20:17:05 | pwtail | set | recipients:
+ pwtail |
2020-05-19 20:17:05 | pwtail | set | messageid: <1589919425.78.0.0609580372109.issue40690@roundup.psfhosted.org> |
2020-05-19 20:17:05 | pwtail | link | issue40690 messages |
2020-05-19 20:17:05 | pwtail | create | |
|