aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <atash@google.com>2016-10-20 14:42:31 -0700
committerGravatar Masood Malekghassemi <atash@google.com>2016-10-28 14:41:27 -0700
commit81cdf1e34e8501e3e0e50182dd6d13499b473868 (patch)
tree4acf6b38718091ea8c98cfad9a0dcc0291b762ae /src/python/grpcio_tests
parent15b04e41f15a9a023fdc3f0bb8f5d5764af8e465 (diff)
Fix Python tests' module loading behavior
Diffstat (limited to 'src/python/grpcio_tests')
-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.