Closed as not planned
Description
Situation
Test fail with errors collecting on 2 files inside docs.
To Reproduce
Steps to reproduce the behavior:
PYTHONPATH=/sw/build.build/semver-py310-3.0.1-1/semver-3.0.1/tests:/sw/build.build/semver-py310-3.0.1-1/semver-3.0.1/build/lib /sw/bin/pytest-3.10
================================================================= test session starts ==================================================================
platform darwin -- Python 3.10.4, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /sw/build.build/semver-py310-3.0.1-1/semver-3.0.1, configfile: setup.cfg, testpaths: tests, docs
plugins: hypothesis-6.36.0, cov-2.6.1
collected 348 items / 2 errors / 346 selected
======================================================================== ERRORS ========================================================================
_______________________________________________________ ERROR collecting docs/advanced/coerce.py _______________________________________________________
/sw/lib/python3.8/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
/sw/lib/python3.8/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/sw/lib/python3.8/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
/sw/lib/python3.8/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('coerce', '/sw/build.build/semver-py38-3.0.1-1/semver-3.0.1/tests/coerce.py', PosixPath('/sw/build.build/semver-py38-3.0.1-1/semver-3.0.1/docs/advanced/coerce.py'))
_________________________________________________ ERROR collecting docs/advanced/semverwithvprefix.py __________________________________________________
/sw/lib/python3.8/site-packages/_pytest/runner.py:311: in from_call
result: Optional[TResult] = func()
/sw/lib/python3.8/site-packages/_pytest/runner.py:341: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/sw/lib/python3.8/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
/sw/lib/python3.8/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('semverwithvprefix', '/sw/build.build/semver-py38-3.0.1-1/semver-3.0.1/tests/semverwithvprefix.py', PosixPath('/sw/build.build/semver-py38-3.0.1-1/semver-3.0.1/docs/advanced/semverwithvprefix.py'))
=============================================================== short test summary info ================================================================
ERROR docs/advanced/coerce.py - _pytest.pathlib.ImportPathMismatchError: ('coerce', '/sw/build.build/semver-py310-3.0.1-1/semver-3.0.1/tests/coerce.p...
ERROR docs/advanced/semverwithvprefix.py - _pytest.pathlib.ImportPathMismatchError: ('semverwithvprefix', '/sw/build.build/semver-py310-3.0.1-1/semve...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Expected Behavior
Tests pass
Environment
- OS: macOS 10.14.6
- Python version 3.8 and 3.10 tested
- Version of semver library : 3.0.1
Additional context
semver-2.13.0 built and passed tests on same system.
Metadata
Metadata
Assignees
Labels
Invalid, out-of-scope, or other inappropriate issuesInvalid, out-of-scope, or other inappropriate issues