-
Notifications
You must be signed in to change notification settings - Fork 38.8k
qa: Make wallet_multiwallet.py Windows-compatible #34418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Last use was removed in 0d32d66.
-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>
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34418. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste |
wallet_multiwallet.py Windows-compatibleThere was a problem hiding this 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!
There was a problem hiding this 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.
Main parts:
wallet_multiwallet.py#31410.wallet_multiwallet.py#31410 (comment).Also:
run_test()into smaller test functions.assert_equal()output for dicts.Fixes #31409.