Skip to content

Commit

Permalink
qa: test proc stderr isn't None before closing it
Browse files Browse the repository at this point in the history
  • Loading branch information
darosior committed Sep 5, 2024
1 parent ba553e9 commit 7cce136
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_framework/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ def tail(self):
self.logs_cond.notifyAll()
self.running = False
self.proc.stdout.close()
self.proc.stderr.close()
if self.proc.stderr is not None:
self.proc.stderr.close()

def is_in_log(self, regex, start=0):
"""Look for `regex` in the logs."""
Expand Down

0 comments on commit 7cce136

Please sign in to comment.