mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Added an __iter__ method for test suites.
This commit is contained in:
parent
9f556a408b
commit
fafd874bc8
2 changed files with 34 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue