Skip to content

Commit c05fa2d

Browse files
committed
pexpect: Drop unused child parameter to drain_and_terminate()
1 parent edbaec9 commit c05fa2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/pexpect_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def terminate(self):
3838
self.child.terminate()
3939
self.wait_for_exit()
4040

41-
def drain_and_terminate(self, child, msg):
41+
def drain_and_terminate(self, msg):
4242
logging.error(msg)
4343

4444
# Wait for the end of the oops, if it is one
@@ -77,7 +77,7 @@ def expect(self, patterns, timeout=-1, bug_patterns=None):
7777
logging.debug("Matched: '%s' %s", self.get_match(), self.matches())
7878

7979
if idx >= len(patterns) - len(bug_patterns):
80-
self.drain_and_terminate(self.child, "Error: saw oops/warning etc. while expecting")
80+
self.drain_and_terminate("Error: saw oops/warning etc. while expecting")
8181

8282
return idx
8383

0 commit comments

Comments
 (0)