mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
test: Use pathlib over os.path #28362
revert netutil chgs py3.8 compliant fixes based on PR review
This commit is contained in:
@ -4,7 +4,6 @@
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
"""Test that fast rescan using block filters for descriptor wallets detects
|
||||
top-ups correctly and finds the same transactions than the slow variant."""
|
||||
import os
|
||||
from typing import List
|
||||
|
||||
from test_framework.address import address_to_scriptpubkey
|
||||
@ -43,7 +42,7 @@ class WalletFastRescanTest(BitcoinTestFramework):
|
||||
wallet = MiniWallet(node)
|
||||
|
||||
self.log.info("Create descriptor wallet with backup")
|
||||
WALLET_BACKUP_FILENAME = os.path.join(node.datadir, 'wallet.bak')
|
||||
WALLET_BACKUP_FILENAME = node.datadir_path / 'wallet.bak'
|
||||
node.createwallet(wallet_name='topup_test', descriptors=True)
|
||||
w = node.get_wallet_rpc('topup_test')
|
||||
fixed_key = get_generate_key()
|
||||
|
Reference in New Issue
Block a user