diff options
author | fanquake <fanquake@gmail.com> | 2021-06-11 13:42:56 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-08-18 12:39:17 +0800 |
commit | dca173cc044270b30782b1e3355e9dcb8c534295 (patch) | |
tree | 5a8e4f63e25c4dbec1b28926cccad61d02327316 /test/functional/feature_blocksdir.py | |
parent | 5453e8706278918ac51a725e81599cfa18c8cdbc (diff) | |
download | bitcoin-dca173cc044270b30782b1e3355e9dcb8c534295.tar.xz |
test: use f-strings in feature_blocksdir.py
Diffstat (limited to 'test/functional/feature_blocksdir.py')
-rwxr-xr-x | test/functional/feature_blocksdir.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/feature_blocksdir.py b/test/functional/feature_blocksdir.py index 7bfad52c24..d3276e64ee 100755 --- a/test/functional/feature_blocksdir.py +++ b/test/functional/feature_blocksdir.py @@ -24,10 +24,10 @@ class BlocksdirTest(BitcoinTestFramework): initialize_datadir(self.options.tmpdir, 0, self.chain) self.log.info("Starting with nonexistent blocksdir ...") blocksdir_path = os.path.join(self.options.tmpdir, 'blocksdir') - self.nodes[0].assert_start_raises_init_error(["-blocksdir=" + blocksdir_path], 'Error: Specified blocks directory "{}" does not exist.'.format(blocksdir_path)) + self.nodes[0].assert_start_raises_init_error([f"-blocksdir={blocksdir_path}"], f'Error: Specified blocks directory "{blocksdir_path}" does not exist.') os.mkdir(blocksdir_path) self.log.info("Starting with existing blocksdir ...") - self.start_node(0, ["-blocksdir=" + blocksdir_path]) + self.start_node(0, [f"-blocksdir={blocksdir_path}"]) self.log.info("mining blocks..") self.nodes[0].generatetoaddress(10, self.nodes[0].get_deterministic_priv_key().address) assert os.path.isfile(os.path.join(blocksdir_path, self.chain, "blocks", "blk00000.dat")) |