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:
247 files changed
+247
-247
No files matched your search
@@ -127,4 +127,4 @@ class P2PCompactBlocksBlocksOnly(BitcoinTestFramework):
|
||||
p2p_conn_blocksonly.wait_until(lambda: test_for_cmpctblock(block2))
|
||||
|
||||
if __name__ == '__main__':
|
||||
P2PCompactBlocksBlocksOnly().main()
|
||||
P2PCompactBlocksBlocksOnly(__file__).main()
|
||||
Reference in new issue
Block a user