scripted-diff: Add __file__ argument to BitcoinTestFramework.init()

-BEGIN VERIFY SCRIPT-
sed -i -e 's/\s*().main\s*()/(__file__).main()/' $(git ls-files test/functional/*.py)
sed -i -e 's/def __init__(self)/def __init__(self, test_file)/' test/functional/test_framework/test_framework.py
-END VERIFY SCRIPT-
This commit is contained in:
Hennadii Stepanov
2024-07-16 22:05:14 +01:00
parent 45750f61d6
commit a0473442d1
247 changed files with 247 additions and 247 deletions

View File

@ -263,4 +263,4 @@ class WalletSignerTest(BitcoinTestFramework):
assert_raises_rpc_error(-1, "GetExternalSigner: More than one external signer found", self.nodes[1].createwallet, wallet_name='multi_hww', disable_private_keys=True, descriptors=True, external_signer=True)
if __name__ == '__main__':
WalletSignerTest().main()
WalletSignerTest(__file__).main()