Message203325
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. |
|
Date |
User |
Action |
Args |
2013-11-18 21:35:56 | stefanholek | set | recipients:
+ stefanholek |
2013-11-18 21:35:56 | stefanholek | set | messageid: <1384810556.81.0.647879257341.issue19647@psf.upfronthosting.co.za> |
2013-11-18 21:35:56 | stefanholek | link | issue19647 messages |
2013-11-18 21:35:56 | stefanholek | create | |
|