Skip to content

Fix compatibility check import side effects#162

Open
echo-wee wants to merge 1 commit into
CoderWanFeng:developfrom
echo-wee:fix-compatibility-mark-file-import
Open

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

Conversation

@echo-wee

Copy link
Copy Markdown

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

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