Skip to content

Commit

Permalink
pytest: explicitly add pwd to pythonpath
Browse files Browse the repository at this point in the history
Recent versions of pytest no longer (by default) add pwd to the
PYTHONPATH. This affects module discovery and can lead to errors like
`No module named 'tests.conftest'` when running pytest locally. This
commit modifies pyproject.toml configuring pytest's pythonpath to
include pwd by default.
  • Loading branch information
Jasha10 committed Nov 16, 2022
1 parent 735f15a commit ea03411
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exclude = '''

[tool.pytest.ini_options]
addopts = "--import-mode=append -Werror"
pythonpath = ["."]

[tool.towncrier]
package = "omegaconf"
Expand Down

0 comments on commit ea03411

Please sign in to comment.