Skip to content

[tests] Isolate in-process Reference bootstrap imports - #32

Open
fwyc0573 wants to merge 1 commit into
mainfrom
fix/pr29-reference-import-isolation
Open

fwyc0573 wants to merge 1 commit into
mainfrom
fix/pr29-reference-import-isolation

Conversation

@fwyc0573

Copy link
Copy Markdown
Collaborator

Follow-up to #29.

The merged PR made the Reference root configurable, but the in-process bootstrap could still retain candidate repository paths in sys.path and leave newly imported frontier.* modules in sys.modules. Because frontier is a namespace package, this allowed mixed candidate/Reference provenance in in-process use.

This change temporarily removes candidate repository paths during Reference execution and cleans only frontier.* modules loaded by this invocation. Added regression tests cover both behaviors.

Validation:

  • tests/unit/test_pdaf_parity_reference_observer_bootstrap.py: 89 passed
  • PR-related resolver/scratch/wrapper tests: 116 passed
  • compileall: passed
  • git diff --check: passed

Reference: follow-up to merged PR #29.

@fwyc0573 fwyc0573 changed the title Isolate in-process Reference bootstrap imports [tests] Isolate in-process Reference bootstrap imports Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant