[issue8301] Putting a function in a unittest.TestSuite doesn't work

2010-05-08 Thread Michael Foord
Michael Foord added the comment: Committed revision 80997. -- resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue8301] Putting a function in a unittest.TestSuite doesn't work

2010-04-03 Thread Michael Foord
New submission from Michael Foord : Putting functions (rather than TestCase instances) directly in TestSuites was never officially supported but it used to work: >>> from unittest import TestSuite, TestResult >>> def f(): pass ... >>> s = TestSuite() >>> s.addTest(f) >>> s.run(TestResult()) Tr