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

dev: pin pytest<8.0.0 #335

Merged
merged 1 commit into from
Feb 15, 2024
Merged

dev: pin pytest<8.0.0 #335

merged 1 commit into from
Feb 15, 2024

Conversation

machow
Copy link
Owner

@machow machow commented Feb 15, 2024

This is a temporary patch to fix CI runs. It pins pytest to be <8.0.0.

Seems like the long term fix is likely here:

https://docs.pytest.org/en/7.1.x/explanation/goodpractices.html#tests-as-part-of-application-code

Here is the error encountered on test collection:

_________________ ERROR collecting quartodoc/tests/test_ast.py _________________
import file mismatch:
imported module 'quartodoc.tests.test_ast' has this __file__ attribute:
  /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/quartodoc/tests/test_ast.py
which is not the same as the test file we want to collect:
  /home/runner/work/quartodoc/quartodoc/quartodoc/tests/test_ast.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

@machow machow marked this pull request as ready for review February 15, 2024 16:48
@machow machow merged commit 3b673a9 into main Feb 15, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

1 participant