8000 qa: Make wallet_multiwallet.py Windows-compatible by hodlinator · Pull Request #34418 · bitcoin/bitcoin · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@hodlinator
Copy link
Contributor

Main parts:

  • Commit "qa: Check for platform-independent part of error message" switches to match on platform-independent part of error message.
  • Commit "qa: Test scanning errors individually" disentangles code causing the same error message substring, based on qa: Fix wallet_multiwallet.py #31410.
  • Commit "qa: Disable parts of the test when running under Windows or root" enables the test to be run on Windows, based in part on qa: Fix wallet_multiwallet.py #31410 (comment).

Also:

  • Removes unused option in wallet_multiwallet.py.
  • Breaks apart wallet_multiwallet.py's run_test() into smaller test functions.
  • Improves assert_equal() output for dicts.

Fixes #31409.

hodlinator and others added 10 commits January 27, 2026 11:48
-BEGIN VERIFY SCRIPT-
sed --in-place 's/self\.nodes\[0\]/node/g; s/node \= node/node \= self\.nodes\[0\]/' ./test/functional/wallet_multiwallet.py
-END VERIFY SCRIPT-
This prepares for later breaking apart of run_test().

Note that the "wallet" lambda was renamed to "get_wallet" since otherwise the Python interpreter emitted:
"UnboundLocalError: cannot access local variable 'wallet' where it is not associated with a value"
Makes the functions broken out from run_test() in the next commit more cohesive.
On Windows one gets different exception messages depending on whether running a native build or cross build.
This change ensures that each condition potentially triggering the
"Error while scanning" log message is tested independently, avoiding
false positives.

Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
test_scanning_sub_dir():
- Remove try/finally - we don't need to clean up after a failed test (done in this commit to maintain indentation).

Regarding symlinks: bitcoin#31410 (comment)

Co-authored-by: Ava Chow <github@achow101.com>
@DrahtBot DrahtBot added the Tests label Jan 27, 2026
@DrahtBot
Copy link
Contributor
DrahtBot commented Jan 27, 2026

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34418.

Reviews

See the guideline for information on the review process.

Type Reviewers
Concept ACK hebasto
Approach ACK w0xlt

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

@hodlinator hodlinator changed the title qa: Make wallet_multiwallet.py Windows-compatible qa: Make wallet_multiwallet.py Windows-compatible Jan 27, 2026
Copy link
Member
@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK.

Thanks for taking this over!

Copy link
Contributor
@w0xlt w0xlt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approach ACK. I’ll review it more closely soon.

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.

qa: Broken wallet_multiwallet.py

4 participants

0