diff options
author | ns-xvrn <ns@xvrn.tech> | 2023-09-02 01:09:43 -0400 |
---|---|---|
committer | ns-xvrn <ns@xvrn.tech> | 2023-10-10 09:26:56 -0400 |
commit | bfa0bd632a7ce5d04005e20cba79abb32aec8da8 (patch) | |
tree | 44e80e5f1339e5bb4308cc3c5de1abf2e60c543b /test/functional/wallet_keypool_topup.py | |
parent | 04265ba9378efbd4c35b33390b1e5cf246d420a9 (diff) | |
download | bitcoin-bfa0bd632a7ce5d04005e20cba79abb32aec8da8.tar.xz |
test: Use pathlib over os.path #28362
revert netutil chgs py3.8 compliant
fixes based on PR review
Diffstat (limited to 'test/functional/wallet_keypool_topup.py')
-rwxr-xr-x | test/functional/wallet_keypool_topup.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/wallet_keypool_topup.py b/test/functional/wallet_keypool_topup.py index 0f1c33a0c2..48180e8294 100755 --- a/test/functional/wallet_keypool_topup.py +++ b/test/functional/wallet_keypool_topup.py @@ -10,7 +10,6 @@ Two nodes. Node1 is under test. Node0 is providing transactions and generating b - Generate 110 keys (enough to drain the keypool). Store key 90 (in the initial keypool) and key 110 (beyond the initial keypool). Send funds to key 90 and key 110. - Stop node1, clear the datadir, move wallet file back into the datadir and restart node1. - connect node1 to node0. Verify that they sync and node1 receives its funds.""" -import os import shutil from test_framework.blocktools import COINBASE_MATURITY @@ -33,8 +32,8 @@ class KeypoolRestoreTest(BitcoinTestFramework): self.skip_if_no_wallet() def run_test(self): - wallet_path = os.path.join(self.nodes[1].wallets_path, self.default_wallet_name, self.wallet_data_filename) - wallet_backup_path = os.path.join(self.nodes[1].datadir, "wallet.bak") + wallet_path = self.nodes[1].wallets_path / self.default_wallet_name / self.wallet_data_filename + wallet_backup_path = self.nodes[1].datadir_path / "wallet.bak" self.generate(self.nodes[0], COINBASE_MATURITY + 1) self.log.info("Make backup of wallet") |