Fix Python tests' module loading behavior

pull/8246/head
Masood Malekghassemi 9 years ago
parent 15b04e41f1
commit 81cdf1e34e
  1. 4
      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.

Loading…
Cancel
Save