Skip to content

Fix compatibility check import side effects - #162

Merged
CoderWanFeng merged 1 commit into
CoderWanFeng:developfrom
echo-wee:fix-compatibility-mark-file-import
Aug 4, 2026
Merged

Fix compatibility check import side effects#162
CoderWanFeng merged 1 commit into
CoderWanFeng:developfrom
echo-wee:fix-compatibility-mark-file-import

Conversation

@echo-wee

Copy link
Copy Markdown
Contributor

Summary

  • Guard the first-run compatibility marker creation so HOME write failures do not break imports
  • Remove module-level compatibility checking to avoid import-time side effects
  • Add a regression test for unwritable marker-file scenarios

Test

  • python -m unittest tests.test_code.test_optional_imports

@CoderWanFeng
CoderWanFeng merged commit 3d7d763 into CoderWanFeng:develop Aug 4, 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.

2 participants