Repository navigation
test(databricks): drop empty __init__.py in responses test dir to avoid package collision - #30288
Closed
cursor[bot] wants to merge 1 commit into
Closed
cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
…id package collision Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
devin-ai-integration
Bot
changed the base branch from
litellm_internal_staging
to
main
September 23, 2026 16:04
Contributor
|
Closing this since main already has the same change from #43191. Thanks for contributing, and please reopen if anything is missing |
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.
Relevant issues
Surfaces as a collection-time
ModuleNotFoundErrorwhenever another provider also ships an__init__.pyunder aresponses/test subdirectory without an__init__.pyin its parent provider directory (most recently, PR #30286 addingtests/test_litellm/llms/dashscope/responses/__init__.py).Linear ticket
n/a (CI autofix)
Pre-Submission checklist
make test-unitCI (LiteLLM team)
Screenshots / Proof of Fix
Reproduced the collection-time collision locally and confirmed the fix:
The failing job before this change: https://github.com/BerriAI/litellm/actions/runs/27407926986/job/81001703014
Type
🐛 Bug Fix
✅ Test
Changes
Deletes the empty
tests/test_litellm/llms/databricks/responses/__init__.py. With pytest's defaultprependimport mode and no__init__.pychain back to a rooted package (there is none undertests/test_litellm/llms/databricks/), that file caused pytest to register the test module under the top-levelresponsespackage name. Any other provider whoseresponses/test directory also has an__init__.py(but whose own provider dir does not) ends up claiming the sameresponsespackage, and whichever module pytest imports second fails withModuleNotFoundError: No module named 'responses.<other_module>'. Removing this empty marker makes the databricks test align with siblingdatabricks/chat/(which has no__init__.py) and lets pytest discover it via rootdir without polluting the globalresponsesnamespace.