Repository navigation
Accept "[" in collection paths, report not-found args as typed - #15426
Draft
RonnyPfannschmidt wants to merge 1 commit into
Draft
RonnyPfannschmidt wants to merge 1 commit into
RonnyPfannschmidt wants to merge 1 commit into
Conversation
resolve_collection_argument split the argument at the first "[" before separating the path, so any path containing "[" (e.g. "dir[1]/test_x.py" or an absolute path below such a directory) was rejected with "path cannot contain [] parametrization". The path now ends at the first "::" and only the selection after it may carry "[...]". A non-existing path whose last component contains "[" still gets the old error. The "not found" error rebuilt the argument from path and parts, which dropped the parametrization and replaced --pyargs module names with file paths. It now shows the argument as given. Closes #10329 Closes #15422 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014GZsRGmtzFSb3kby1RYQWd
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Ronny · project thread
🤖 Written by Claude Opus 5.5 via Claude Code for the pytest maintainers; I prompted it, it did the work, I read it.
Collection arguments were split at the first
[before separating the path, which rejected any path containing[(#10329) and made the "not found" error rebuild the argument without its[...](#15422). The path now ends at the first::, a missing path whose last component has[keeps the old "path cannot contain [] parametrization" error (#10273), and the not-found error shows the argument as typed. Tests cover the bracket directory, the parser, and a matrix of not-found selections.closes #10329
closes #15422
Generated by Claude Code