mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-28 07:48:36 +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:
@@ -3,7 +3,6 @@
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or https://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
import os
|
||||
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.address import (
|
||||
@@ -110,7 +109,7 @@ class WalletBlankTest(BitcoinTestFramework):
|
||||
assert_equal(info["descriptors"], False)
|
||||
assert_equal(info["blank"], True)
|
||||
|
||||
wallet_dump_path = os.path.join(self.nodes[0].datadir, "wallet.dump")
|
||||
wallet_dump_path = self.nodes[0].datadir_path / "wallet.dump"
|
||||
def_wallet.dumpwallet(wallet_dump_path)
|
||||
|
||||
wallet.importwallet(wallet_dump_path)
|
||||
|
||||
Reference in New Issue
Block a user