diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-10-06 14:11:45 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-10-06 14:11:45 (GMT) |
commit | 7d14015e629da702f17d5e0ab616c15c8145e771 (patch) | |
tree | c4905ff89a2d5c64486a6ffdeddc5ae74cf848ae /Lib/unittest | |
parent | c018f57186bed05a129a0eda5d9ae11d94da5189 (diff) | |
download | cpython-7d14015e629da702f17d5e0ab616c15c8145e771.zip cpython-7d14015e629da702f17d5e0ab616c15c8145e771.tar.gz cpython-7d14015e629da702f17d5e0ab616c15c8145e771.tar.bz2 |
Issue #16120: Use |yield from| in stdlib.
Patch by Berker Peksag.
Diffstat (limited to 'Lib/unittest')
-rw-r--r-- | Lib/unittest/loader.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/unittest/loader.py b/Lib/unittest/loader.py index 541884e..a5ac737 100644 --- a/Lib/unittest/loader.py +++ b/Lib/unittest/loader.py @@ -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) |