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 stefanholek
Recipients stefanholek
Date 2013-11-18.21:35:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384810556.81.0.647879257341.issue19647@psf.upfronthosting.co.za>
In-reply-to
Content
This test passed in Python <= 3.3 but fails in 3.4:

    def testTestSuiteConsumesTest(self):
        class MyTestCase(unittest.TestCase):
            def testMethod(self):
                pass
        test = MyTestCase('testMethod')
        suite = unittest.TestSuite((test,))
        result = unittest.TestResult()
        self.assertEqual(next(iter(suite)), test)
        suite.run(result)
        self.assertEqual(next(iter(suite)), test)

The suite contains None after it has been run in Python 3.4.
History
Date User Action Args
2013-11-18 21:35:56stefanholeksetrecipients: + stefanholek
2013-11-18 21:35:56stefanholeksetmessageid: <1384810556.81.0.647879257341.issue19647@psf.upfronthosting.co.za>
2013-11-18 21:35:56stefanholeklinkissue19647 messages
2013-11-18 21:35:56stefanholekcreate