Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some tests failing with ImportPathMismatchError #27

Closed
jaraco opened this issue Sep 29, 2022 · 1 comment
Closed

Some tests failing with ImportPathMismatchError #27

jaraco opened this issue Sep 29, 2022 · 1 comment

Comments

@jaraco
Copy link
Owner

jaraco commented Sep 29, 2022

Recently, tests started failing. I suspect the issue was introduced by the introduction of build to checkdocs.

______________________ ERROR collecting examples/build.py ______________________
.tox/python/lib/python3.11/site-packages/_pytest/runner.py:338: in from_call
    result: Optional[TResult] = func()
.tox/python/lib/python3.11/site-packages/_pytest/runner.py:369: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
.tox/python/lib/python3.11/site-packages/_pytest/doctest.py:545: in collect
    module = import_path(
.tox/python/lib/python3.11/site-packages/_pytest/pathlib.py:556: in import_path
    raise ImportPathMismatchError(module_name, module_file, path)
E   _pytest.pathlib.ImportPathMismatchError: ('build', '/Users/runner/work/cssutils/cssutils/.tox/python/lib/python3.11/site-packages/build', PosixPath('/Users/runner/work/cssutils/cssutils/examples/build.py'))
@jaraco
Copy link
Owner Author

jaraco commented Sep 29, 2022

Confirmed. Looking at this test, I see the failing run is using checkdocs 2.8, but the ones that passed have checkdocs 2.7.1.

@jaraco jaraco closed this as completed in 1b309b7 Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant