Skip to content

Commit

Permalink
Merge pull request #558 from ZLLentz/fix_py310_benchmark
Browse files Browse the repository at this point in the history
FIX: ignore bonus unrelated modules found in py310 walk
  • Loading branch information
ZLLentz committed Jul 12, 2023
2 parents 9f898ae + 58292d1 commit ee4da32
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions docs/source/upcoming_release_notes/558-fix_py310_benchmark.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
558 fix_py310_benchmark
#######################

API Changes
-----------
- N/A

Features
--------
- N/A

Bugfixes
--------
- Fix issues with running the CLI benchmarks in certain
conda installs, particularly python>=3.10.

Maintenance
-----------
- N/A

Contributors
------------
- zllentz
4 changes: 2 additions & 2 deletions typhos/benchmark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ def get_submodule_names(module_name):
# This attr is missing if there are no submodules
return submodule_names

for _, submodule_name, is_pkg in pkgutil.walk_packages(module_path):
if submodule_name != '__main__':
for info, submodule_name, is_pkg in pkgutil.walk_packages(module_path):
if submodule_name != '__main__' and info.path in module_path:
full_submodule_name = module_name + '.' + submodule_name
submodule_names.append(full_submodule_name)
if is_pkg:
Expand Down

0 comments on commit ee4da32

Please sign in to comment.