1 suggestion
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Optional improvements
[suggestion] · Boolean assertion failures omit the rejected value
The new functional-test helpers omit evaluated values from failure messages, reducing diagnostics compared with assert_equal when an expression returns an unexpected non-bool value.
Location: test/functional/test_framework/util.py:90 (head).
Details and suggested fix
Both helpers raise constant messages, whereas the replaced assert_equal(x, True/False) calls included their operands. For example, assert_true(info.get('solvable')) in wallet_address_types.py reports the same failure for False, a missing key yielding None, or an integer. The exception handler logs the message and traceback without helper arguments. Known boolean results are inferable, and RPC debug logs may retain response values, but neither makes the assertion message informative for unexpected types. Include {expression!r} in both failure messages, for example f"Expected True, got {expression!r}". Formatting only in the failure branch preserves the identity checks and protection against optimized mode.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Helper documentation omits strict boolean acceptance (earlier report)