aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/test_framework.py
diff options
context:
space:
mode:
authorns-xvrn <ns@xvrn.tech>2023-09-02 01:09:43 -0400
committerns-xvrn <ns@xvrn.tech>2023-10-10 09:26:56 -0400
commitbfa0bd632a7ce5d04005e20cba79abb32aec8da8 (patch)
tree44e80e5f1339e5bb4308cc3c5de1abf2e60c543b /test/functional/test_framework/test_framework.py
parent04265ba9378efbd4c35b33390b1e5cf246d420a9 (diff)
downloadbitcoin-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/test_framework/test_framework.py')
-rwxr-xr-xtest/functional/test_framework/test_framework.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index c46c04c0ec..50444b95bb 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -1006,5 +1006,5 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
return self.config["components"].getboolean("USE_BDB")
def has_blockfile(self, node, filenum: str):
- blocksdir = os.path.join(node.datadir, self.chain, 'blocks', '')
- return os.path.isfile(os.path.join(blocksdir, f"blk{filenum}.dat"))
+ blocksdir = node.datadir_path / self.chain / 'blocks'
+ return (blocksdir / f"blk{filenum}.dat").is_file()