Skip to content

Commit

Permalink
Working in python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
taconi committed Oct 23, 2023
1 parent 1c54620 commit dae0e3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ]
defaults:
run:
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion ward/_collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def is_test_module(module: pkgutil.ModuleInfo) -> bool:


def _get_module_path(module: pkgutil.ModuleInfo) -> Path:
return Path(module.module_finder.find_module(module.name).path)
return Path(module.module_finder.find_spec(module.name).origin)


def _is_excluded_module(module: pkgutil.ModuleInfo, exclusions: Iterable[str]) -> bool:
Expand Down

0 comments on commit dae0e3c

Please sign in to comment.