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 fried
Recipients fried, lisroach, lukasz.langa
Date 2019-01-18.01:25:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547774719.89.0.274196426974.issue35767@roundup.psfhosted.org>
In-reply-to
Content
https://github.com/python/cpython/blob/3.7/Lib/unittest/loader.py#L232

fullName = '%s.%s' % (testCaseClass.__module__, testFunc.__qualname__)

Instead we should probably replace testFunc.__qualname__ with attrname

I ran into this while running a test suite that built up test functions using partials and added them to the TestCase class with setattr. 

This works in 3.6.3
History
Date User Action Args
2019-01-18 01:25:22friedsetrecipients: + fried, lukasz.langa, lisroach
2019-01-18 01:25:19friedsetmessageid: <1547774719.89.0.274196426974.issue35767@roundup.psfhosted.org>
2019-01-18 01:25:19friedlinkissue35767 messages
2019-01-18 01:25:19friedcreate