Skip to content

Commit 86cd383

Browse files
committed
Allow use of communicate in OSX testing
1 parent 61f5646 commit 86cd383

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/os_darwin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def do_popen(command, *args, **kwargs):
160160
'ioreg': usb_tree}[command[0]],
161161
to_ret.stdout)
162162
to_ret.stdout.seek(0)
163+
to_ret.communicate.return_value = (to_ret.stdout.getvalue(), "")
163164
return to_ret
164165
_popen.side_effect = do_popen
165166
candidates = self.darwin.find_candidates()

0 commit comments

Comments
 (0)