diff options
| author | James Chiang <[email protected]> | 2019-11-05 08:59:40 +0100 |
|---|---|---|
| committer | James Chiang <[email protected]> | 2019-11-05 12:55:52 +0100 |
| commit | a8dea4552412668c2914b6395ef543341a9898cd (patch) | |
| tree | 4fd4c8159362708760753f20584c8592045ee249 | |
| parent | Doc: Remove backticks in test-shell.md code block (diff) | |
| download | discoin-a8dea4552412668c2914b6395ef543341a9898cd.tar.xz discoin-a8dea4552412668c2914b6395ef543341a9898cd.zip | |
TestShell: Simplify default setting of num_nodes
| -rw-r--r-- | test/functional/test_framework/test_shell.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/test_framework/test_shell.py b/test/functional/test_framework/test_shell.py index 97fcc3fa4..fe3d2bb1f 100644 --- a/test/functional/test_framework/test_shell.py +++ b/test/functional/test_framework/test_shell.py @@ -29,8 +29,7 @@ class TestShell: # Num_nodes parameter must be set # by BitcoinTestFramework child class. - self.num_nodes = kwargs.get('num_nodes', 1) - kwargs.pop('num_nodes', None) + self.num_nodes = 1 # User parameters override default values. for key, value in kwargs.items(): |