Skip to content

Fix source-code loading example crash#13

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-correctness-bugs-784e
Draft

Fix source-code loading example crash#13
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-correctness-bugs-784e

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 23, 2026

Fixes a crash in source/load_mod_from_source_code.py where exec("a=b", {}) raised NameError because b was undefined. The execution namespace is now seeded with b, and a subprocess unittest covers the command-line example.

Validation:

  • python3 -m unittest discover
  • python3 source/load_mod_from_source_code.py
  • python3 source/unittest_to_io.py
Open in Web View Automation 

Co-authored-by: 0-coding <0-coding@users.noreply.github.com>
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