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_crosschain.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_crosschain.py')
-rwxr-xr-x | test/functional/wallet_crosschain.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/functional/wallet_crosschain.py b/test/functional/wallet_crosschain.py index 7a1297e65f..4c5d7192ae 100755 --- a/test/functional/wallet_crosschain.py +++ b/test/functional/wallet_crosschain.py @@ -3,8 +3,6 @@ # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. -import os - from test_framework.test_framework import BitcoinTestFramework from test_framework.util import assert_raises_rpc_error @@ -31,13 +29,13 @@ class WalletCrossChain(BitcoinTestFramework): def run_test(self): self.log.info("Creating wallets") - node0_wallet = os.path.join(self.nodes[0].datadir, 'node0_wallet') - node0_wallet_backup = os.path.join(self.nodes[0].datadir, 'node0_wallet.bak') + node0_wallet = self.nodes[0].datadir_path / 'node0_wallet' + node0_wallet_backup = self.nodes[0].datadir_path / 'node0_wallet.bak' self.nodes[0].createwallet(node0_wallet) self.nodes[0].backupwallet(node0_wallet_backup) self.nodes[0].unloadwallet(node0_wallet) - node1_wallet = os.path.join(self.nodes[1].datadir, 'node1_wallet') - node1_wallet_backup = os.path.join(self.nodes[0].datadir, 'node1_wallet.bak') + node1_wallet = self.nodes[1].datadir_path / 'node1_wallet' + node1_wallet_backup = self.nodes[0].datadir_path / 'node1_wallet.bak' self.nodes[1].createwallet(node1_wallet) self.nodes[1].backupwallet(node1_wallet_backup) self.nodes[1].unloadwallet(node1_wallet) |