Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

Ignore target when running pytest in rye#893

Merged
mitsuhiko merged 1 commit intoastral-sh:mainfrom
j178:ignore-target
Mar 15, 2024
Merged

Ignore target when running pytest in rye#893
mitsuhiko merged 1 commit intoastral-sh:mainfrom
j178:ignore-target

Conversation

@j178
Copy link
Copy Markdown
Contributor

@j178 j178 commented Mar 15, 2024

rye puts testing Python toolchains inside target/debug/rye-test-home/py. When you run pytest, it searches target and inadvertently picks up Python standard library tests, resulting in thousands of test cases to run. We should ignore target when running pytest in rye project.

rye puts testing Python toolchains inside `target/debug/rye-test-home/py`. When you run `pytest`, it searches `target` and inadvertently picks up Python standard library tests, resulting in thousands of test cases to run. We should ignore `target` when running pytest in rye project.
@mitsuhiko mitsuhiko merged commit 56d961a into astral-sh:main Mar 15, 2024
@j178 j178 mentioned this pull request Mar 15, 2024
@j178 j178 deleted the ignore-target branch March 16, 2024 06:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants