Skip to content

[runScripts]: wrap script execution in __main__ block; fixes #1247#1258

Open
fso42 wants to merge 2 commits intomasterfrom
fix1247
Open

[runScripts]: wrap script execution in __main__ block; fixes #1247#1258
fso42 wants to merge 2 commits intomasterfrom
fix1247

Conversation

@fso42
Copy link
Copy Markdown
Contributor

@fso42 fso42 commented Mar 25, 2026

Wraps the top-level execution code in runStandardTestsCom1DFA.py and
runUpdateBenchmarkTestsCom1DFA.py in if __name__ == "__main__" guards.

This prevents unintended execution when these scripts are imported as
modules (e.g. during test collection or parallel processing forks),
which was the root cause of #1247.

@fso42 fso42 added the bugfix label Mar 25, 2026
@fso42 fso42 self-assigned this Mar 25, 2026
@fso42
Copy link
Copy Markdown
Contributor Author

fso42 commented Mar 25, 2026

Standardtests ident

@qltysh
Copy link
Copy Markdown
Contributor

qltysh bot commented Mar 25, 2026

Qlty

Coverage Impact

This PR will not change total coverage.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@fso42 fso42 requested a review from JuLa96 March 25, 2026 11:59
@fso42 fso42 modified the milestone: Version 2.0 Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant