diff options
author | James Chiang <james.chiangwu@gmail.com> | 2019-11-05 09:24:55 +0100 |
---|---|---|
committer | James Chiang <james.chiangwu@gmail.com> | 2019-11-05 12:55:52 +0100 |
commit | 2493770e365a7e30117dc1b8d228f9cbed97f7e1 (patch) | |
tree | 24a77629340a439841bf9ac6e211744351690bac /test/functional/test_framework | |
parent | a8dea4552412668c2914b6395ef543341a9898cd (diff) | |
download | bitcoin-2493770e365a7e30117dc1b8d228f9cbed97f7e1.tar.xz |
TestShell: Return self from setup()
This allows user to chain setup() to the initializer. test-shell.md code
examples have been updated to reflect this.
Diffstat (limited to 'test/functional/test_framework')
-rw-r--r-- | test/functional/test_framework/test_shell.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/test_framework/test_shell.py b/test/functional/test_framework/test_shell.py index fe3d2bb1fa..26df128f1f 100644 --- a/test/functional/test_framework/test_shell.py +++ b/test/functional/test_framework/test_shell.py @@ -42,6 +42,7 @@ class TestShell: super().setup() self.running = True + return self def shutdown(self): if not self.running: |