From e16ab3efa7676e7bcaaa78cedf2465f531f9c82b Mon Sep 17 00:00:00 2001 From: Aria Desires Date: Fri, 12 Dec 2025 08:09:51 -0500 Subject: [PATCH] full freedom --- crates/ty/tests/cli/python_environment.rs | 6 +++--- .../src/module_resolver/resolver.rs | 13 +++++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/crates/ty/tests/cli/python_environment.rs b/crates/ty/tests/cli/python_environment.rs index 1f3479d2fd..bd15d1076a 100644 --- a/crates/ty/tests/cli/python_environment.rs +++ b/crates/ty/tests/cli/python_environment.rs @@ -2390,14 +2390,14 @@ fn default_root_flat_layout() -> anyhow::Result<()> { fn default_root_tests_folder() -> anyhow::Result<()> { let case = CliTest::with_files([ ("src/foo.py", "foo = 10"), - ("tests/bar.py", "bar = 20"), + ("tests/bar.py", "baz = 20"), ( "tests/test_bar.py", r#" from foo import foo - from bar import bar + from bar import baz - print(f"{foo} {bar}") + print(f"{foo} {baz}") "#, ), ])?; diff --git a/crates/ty_python_semantic/src/module_resolver/resolver.rs b/crates/ty_python_semantic/src/module_resolver/resolver.rs index 901b4f44f1..a1503f5a3b 100644 --- a/crates/ty_python_semantic/src/module_resolver/resolver.rs +++ b/crates/ty_python_semantic/src/module_resolver/resolver.rs @@ -432,12 +432,17 @@ fn desperate_search_paths(db: &dyn Db, importing_file: File) -> Option