Skip to content

Fix truthy string returns masking failures in unittest evaluation#1217

Open
xinyinghou wants to merge 1 commit into
RunestoneInteractive:mainfrom
xinyinghou:rs-debug
Open

Fix truthy string returns masking failures in unittest evaluation#1217
xinyinghou wants to merge 1 commit into
RunestoneInteractive:mainfrom
xinyinghou:rs-debug

Conversation

@xinyinghou
Copy link
Copy Markdown
Contributor

Error paths in evaluate_fixed_code returned non-empty strings (e.g. "We got errors, ..."), which are truthy and caused callers checking if not unittest_result to treat failures as successes. Replace all such returns with False, and tighten the caller checks to is not True so only an actual True passes.

@xinyinghou xinyinghou requested a review from bnmnetp as a code owner May 16, 2026 06:55
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