Closed 1uc closed 1 year ago
When simply running pytest after a performing pip install -e . I get the following errors:
pytest
pip install -e .
binds/python/pybind11/tests/conftest.py:16: in <module> import pybind11_tests E ModuleNotFoundError: No module named 'pybind11_tests'
which means it's picking up the pybind11 tests and fails. This PR proposes to limit the folders pytest considers to tests.
tests
The PR shows two ways of solving the issue either via pyproject.toml or with a pytest.ini file.
pyproject.toml
pytest.ini
When simply running
pytest
after a performingpip install -e .
I get the following errors:which means it's picking up the pybind11 tests and fails. This PR proposes to limit the folders pytest considers to
tests
.