Skip to content

Commit d74fcbc

Browse files
committed
test: Handle Optional emulator password
1 parent d4cf550 commit d74fcbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_device.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __init__(self, bitcoind, emulator=None, interface='library', methodName='run
137137
self.emulator = emulator
138138

139139
self.dev_args = ['-t', self.emulator.type, '-d', self.emulator.path, '--chain', 'test']
140-
if self.emulator.password:
140+
if self.emulator.password is not None:
141141
self.dev_args.extend(['-p', self.emulator.password])
142142

143143
self.interface = interface
@@ -173,7 +173,7 @@ def do_command(self, args):
173173
return process_commands(args)
174174

175175
def get_password_args(self):
176-
if self.emulator.password:
176+
if self.emulator.password is not None:
177177
return ['-p', self.emulator.password]
178178
return []
179179

0 commit comments

Comments
 (0)