diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-09-08 10:39:06 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-09-08 18:58:31 +0200 |
commit | fadecbd9a4d47957f42672911675c400caeaac24 (patch) | |
tree | 9385c18c6b9d291f66f33eec60bbf3e89855bd03 /test/functional/feature_presegwit_node_upgrade.py | |
parent | 5e3380b9f59481fc18e05b9d651c3c733abe4053 (diff) |
test: Fix tests on Windows
Diffstat (limited to 'test/functional/feature_presegwit_node_upgrade.py')
-rwxr-xr-x | test/functional/feature_presegwit_node_upgrade.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/functional/feature_presegwit_node_upgrade.py b/test/functional/feature_presegwit_node_upgrade.py index 0428588da3..eb4ee7f1b4 100755 --- a/test/functional/feature_presegwit_node_upgrade.py +++ b/test/functional/feature_presegwit_node_upgrade.py @@ -9,6 +9,8 @@ from test_framework.util import ( assert_equal, softfork_active, ) +import os + class SegwitUpgradeTest(BitcoinTestFramework): def set_test_params(self): @@ -35,8 +37,11 @@ class SegwitUpgradeTest(BitcoinTestFramework): # Restarting the node (with segwit activation height set to 5) should result in a shutdown # because the blockchain consists of 3 insufficiently validated blocks per segwit consensus rules. node.assert_start_raises_init_error( - extra_args=["-segwitheight=5"], - expected_msg=": Witness data for blocks after height 5 requires validation. Please restart with -reindex..\nPlease restart with -reindex or -reindex-chainstate to recover.") + extra_args=["-segwitheight=5"], + expected_msg=": Witness data for blocks after height 5 requires " + f"validation. Please restart with -reindex..{os.linesep}" + "Please restart with -reindex or -reindex-chainstate to recover.", + ) # As directed, the user restarts the node with -reindex self.start_node(0, extra_args=["-reindex", "-segwitheight=5"]) |