-
Notifications
You must be signed in to change notification settings - Fork 320
Revert "fix(tests): five rfdetr-seg static-crop tests shadow each other by name" #2971
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
Merged
PawelPeczek-Roboflow
merged 1 commit into
main
from
revert-2948-fix/rfdetr-seg-onnx-duplicate-test-names
Sep 11, 2026
+5
−5
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Medium — this revert reintroduces the name shadowing that #2948 fixed.
After this revert, five test names each appear twice in this module:
test_package_with_static_crop_letterbox_against_numpy_input— line 938 (uses..._static_crop_letterbox_package) and line 1088 (uses..._static_crop_center_crop_package)test_package_with_static_crop_letterbox_against_numpy_list_input— lines 965 / 1121test_package_with_static_crop_letterbox_against_torch_input— lines 996 / 1164test_package_with_static_crop_letterbox_against_torch_list_input— lines 1023 / 1197test_package_with_static_crop_letterbox_against_torch_batch_input— lines 1054 / 1240Because these are module-level
defs with identical names, Python keeps only the last definition. pytest collects only the second occurrence of each (thecenter_crop-fixture versions at 1088–1240); the five genuineletterboxstatic-crop tests at 938–1084 are silently dropped from collection — never run, no failure, no skip. That is the exact regression #2948 was renaming these functions to fix.I understand this is a deliberate revert for CLA reasons (per your "Reverting due to no CLA" comment) rather than a technical disagreement with the fix. Flagging only so the coverage loss is on record: the letterbox static-crop ONNX path loses its five tests until the rename is re-applied under proper attribution.
Reviewed at HEAD: 624a10f