Skip to content

Commit d43948c

Browse files
committed
refactor: use unlink rather than os.remove
1 parent c8176f7 commit d43948c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/functional/feature_blocksxor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Test support for XORed block data and undo files (`-blocksxor` option)."""
6-
import os
76

87
from test_framework.test_framework import BitcoinTestFramework
98
from test_framework.test_node import ErrorMatch
@@ -54,7 +53,7 @@ def run_test(self):
5453
match=ErrorMatch.PARTIAL_REGEX)
5554

5655
self.log.info("Delete XOR key, restart node with '-blocksxor=0', check blk*.dat/rev*.dat file integrity")
57-
os.remove(node.blocks_key_path)
56+
node.blocks_key_path.unlink()
5857
self.start_node(0, extra_args=['-blocksxor=0'])
5958
# checklevel=2 -> verify block validity + undo data
6059
# nblocks=0 -> verify all blocks

0 commit comments

Comments
 (0)