Issue #16120: Use |yield from| in stdlib.

Patch by Berker Peksag.
This commit is contained in:
Andrew Svetlov 2012-10-06 17:11:45 +03:00
parent c018f57186
commit 7d14015e62
3 changed files with 6 additions and 12 deletions

View file

@ -291,8 +291,7 @@ class TestLoader(object):
# tests loaded from package file
yield tests
# recurse into the package
for test in self._find_tests(full_path, pattern):
yield test
yield from self._find_tests(full_path, pattern)
else:
try:
yield load_tests(self, tests, pattern)