This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pwtail
Recipients pwtail
Date 2020-05-19.20:17:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589919425.78.0.0609580372109.issue40690@roundup.psfhosted.org>
In-reply-to
Content
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__'
History
Date User Action Args
2020-05-19 20:17:05pwtailsetrecipients: + pwtail
2020-05-19 20:17:05pwtailsetmessageid: <1589919425.78.0.0609580372109.issue40690@roundup.psfhosted.org>
2020-05-19 20:17:05pwtaillinkissue40690 messages
2020-05-19 20:17:05pwtailcreate