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_reorgsrestore.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_reorgsrestore.py')
-rwxr-xr-x | test/functional/wallet_reorgsrestore.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/wallet_reorgsrestore.py b/test/functional/wallet_reorgsrestore.py index af01b9439f..86a2905c72 100755 --- a/test/functional/wallet_reorgsrestore.py +++ b/test/functional/wallet_reorgsrestore.py @@ -14,7 +14,6 @@ disconnected. """ from decimal import Decimal -import os import shutil from test_framework.test_framework import BitcoinTestFramework @@ -88,8 +87,8 @@ class ReorgsRestoreTest(BitcoinTestFramework): # Node0 wallet file is loaded on longest sync'ed node1 self.stop_node(1) - self.nodes[0].backupwallet(os.path.join(self.nodes[0].datadir, 'wallet.bak')) - shutil.copyfile(os.path.join(self.nodes[0].datadir, 'wallet.bak'), os.path.join(self.nodes[1].chain_path, self.default_wallet_name, self.wallet_data_filename)) + self.nodes[0].backupwallet(self.nodes[0].datadir_path / 'wallet.bak') + shutil.copyfile(self.nodes[0].datadir_path / 'wallet.bak', self.nodes[1].chain_path / self.default_wallet_name / self.wallet_data_filename) self.start_node(1) tx_after_reorg = self.nodes[1].gettransaction(txid) # Check that normal confirmed tx is confirmed again but with different blockhash |