pytest-dev / pytest-dev/pytest
ImportError: 'No module named fix'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 14.5k
- Forks
- 3.4k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 35
Description
I'm trying to package pytest 3.0.1 for Gentoo. During the test run, I get the following error:
ImportError while importing test module '/var/tmp/portage/dev-python/pytest-3.0.1/temp/pytest-of-portage/pytest-0/testdir/test_non_relative_path0/tests/test_foos.py'.
Original error message:
'No module named fix'
Make sure your test modules/packages have valid Python names.
For more details, see the Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=592424
I've searched the whole internet, and found no reference to a python module with name fix and function fix_with_param. What am I doing wrong? Which dependency am I missing?
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
Start by reproducing the pytest 3.0.1 test run described in the issue and inspect the failing test module path ending in tests/test_foos.py. Compare the packaging environment with the Gentoo bug report to determine why the fix module cannot be imported. Done means identifying the missing or mispackaged component and documenting a verified correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100