diff --git a/tests/specify_cli/workflows/function/test_loader.py b/tests/specify_cli/workflows/function/test_loader.py index 7507a8f147..c6a0abb9f7 100644 --- a/tests/specify_cli/workflows/function/test_loader.py +++ b/tests/specify_cli/workflows/function/test_loader.py @@ -211,7 +211,7 @@ def test_import_failure_after_submodule_import_leaves_no_submodules(self, projec ) (package / "helpers.py").write_text("X = 1\n") self.assert_only_healthy_loaded(project_dir) - assert not [n for n in sys.modules if n.startswith(PREFIX) and "bad" in n] + assert not [n for n in sys.modules if n.startswith(PREFIX + "bad_")] def test_syntax_error(self, project_dir): self.healthy(project_dir)