[BUG] 2.6.2: pyest based test suite is failing with missing 'pybind11_tests' module
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 18k
- Forks
- 2.3k
- Avg merge
- 5d 17h
- Merged PRs (30d)
- 10
Description
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/pybind11-2.6.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/pybind11-2.6.2-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
ImportError while loading conftest '/home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/conftest.py'.
tests/conftest.py:19: in <module>
import pybind11_tests # noqa: F401
E ModuleNotFoundError: No module named 'pybind11_tests'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The failure occurs while loading tests/conftest.py during /usr/bin/python3 -Bm pytest -ra with the shown PYTHONPATH. Start by reproducing that command and tracing how pybind11_tests is built or made importable; done means conftest.py loads without ModuleNotFoundError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100