fix: start each pack run with no stale notices

_MISSING_DATA_DIRS is module state: a test that called main() after one
whose data directories were not cached exited 1 with the earlier run's
notice. main() now clears it first.
This commit is contained in:
Abdessamad Derraz committed 2026-10-24 02:34:47 +02:00
1 parent 973394717c
commit 1998580772
1 file changed
+3
+3
View File
@@ -3091,6 +3091,9 @@ _MISSING_DATA_DIRS: set[str] = set()
def main() -> None:
# One run's account: tests call main() repeatedly in one process, and a
# notice left by an earlier run failed a later one that missed nothing.
_MISSING_DATA_DIRS.clear()
with contextlib.ExitStack() as held:
try:
_main(held)