diff options
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r-- | Lib/unittest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py index 29d90e3..3375067 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -400,6 +400,9 @@ class TestSuite: __str__ = __repr__ + def __iter__(self): + return iter(self._tests) + def countTestCases(self): cases = 0 for test in self._tests: |