aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/_loader.py
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-12-27 15:36:14 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-12-27 15:36:14 -0800
commit5aca1dde32c4d8c278c00aa6662f01a9a6c49517 (patch)
treeb73b408cef40c02fa550bfa5202896e0469e71c9 /src/python/grpcio_tests/tests/_loader.py
parenta1878705357cad75a1c33620fbb5362e46cca678 (diff)
parent22b28264f9242b6d049f9e6d5b792bd5be048a97 (diff)
Merge github.com:grpc/grpc into flow_control_v2
Diffstat (limited to 'src/python/grpcio_tests/tests/_loader.py')
-rw-r--r--src/python/grpcio_tests/tests/_loader.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/python/grpcio_tests/tests/_loader.py b/src/python/grpcio_tests/tests/_loader.py
index c2f097f6c6..621bedc7bb 100644
--- a/src/python/grpcio_tests/tests/_loader.py
+++ b/src/python/grpcio_tests/tests/_loader.py
@@ -84,11 +84,9 @@ class Loader(object):
along.
"""
for importer, module_name, is_package in (
- pkgutil.iter_modules(package_paths)):
+ pkgutil.walk_packages(package_paths)):
module = importer.find_module(module_name).load_module(module_name)
self.visit_module(module)
- if is_package:
- self.walk_packages(module.__path__)
def visit_module(self, module):
"""Visits the module, adding discovered tests to the test suite.