Skip to content
Snippets Groups Projects
Commit 81cdf1e3 authored by Masood Malekghassemi's avatar Masood Malekghassemi
Browse files

Fix Python tests' module loading behavior

parent 15b04e41
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment