We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de31a87 commit bd4c4eaCopy full SHA for bd4c4ea
tests/test_shadowed_module.py
@@ -79,10 +79,9 @@ def test_shadowed_modules_when_importing_integrations(
79
An integration is determined to be for a third-party module if it cannot
80
be imported in the environment in which the tests run.
81
"""
82
- module_path = (
83
- pathlib.Path("sentry_sdk") / "integrations" / integration_submodule_name
84
- )
85
- import_path = ".".join(module_path.with_suffix("").parts)
+ parts = integration_submodule_name.split(".")
+ module_path = pathlib.Path("sentry_sdk") / "integrations" / pathlib.Path(*parts)
+ import_path = ".".join(("sentry_sdk", "integrations", *parts))
86
87
integration_dependencies = set()
88
for py_file in pathlib.Path(module_path).rglob("*.py"):
0 commit comments