Skip to content

Commit a6f68df

Browse files
Ark-kuncopybara-github
authored andcommitted
chore: Fixed the architecture/test_vertexai_import test under Python 3.12 when using editable install
Fixes: #4037 PiperOrigin-RevId: 649143541
1 parent 02ffd27 commit a6f68df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/architecture/test_vertexai_import.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_vertexai_import():
3434
# My solution is to ignore modules that are parents of the current test module.
3535
modules_before_aip = set(sys.modules)
3636
for module_name in modules_before_aip:
37-
assert "aiplatform" not in module_name or __name__.startswith(module_name)
37+
assert ".aiplatform" not in module_name or __name__.startswith(module_name)
3838
assert "vertexai" not in module_name or __name__.startswith(module_name)
3939

4040
# Test aiplatform import

0 commit comments

Comments
 (0)