Skip to content

Commit 3e36faf

Browse files
committed
test: stabilize local package cleanup checks
Import the local scholaraio package before PathFinder-based lookup so isolated cleanup contract runs do not depend on prior package imports.
1 parent 1b1ef01 commit 3e36faf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_breaking_cleanup_contract.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import importlib
34
from importlib.machinery import PathFinder
45
from pathlib import Path
56

@@ -47,6 +48,7 @@
4748

4849

4950
def _local_package_spec(module_name: str):
51+
importlib.import_module("scholaraio")
5052
repo_root = Path(__file__).resolve().parents[1]
5153
package_root = repo_root / "scholaraio"
5254
relative_parts = module_name.split(".")[1:]

0 commit comments

Comments
 (0)