Bug 1272782 - Send tuple properly; r?ahal
Found this bug when auditing the code for issues. We are attempting
to send a tuple but were forgetting the trailing comma on a single
element tuple.
Fortunately, this doesn't appear to impact anything because
the receiving end of the pipe doesn't care what data it receives.
MozReview-Commit-ID: E34fBqxgUSq
--- a/testing/mozbase/mozsystemmonitor/mozsystemmonitor/resourcemonitor.py
+++ b/testing/mozbase/mozsystemmonitor/mozsystemmonitor/resourcemonitor.py
@@ -277,17 +277,17 @@ class SystemResourceMonitor(object):
"""
if not self._process:
self._stopped = True
return
assert self._running
assert not self._stopped
- self._pipe.send(('terminate'))
+ self._pipe.send(('terminate',))
self._running = False
self._stopped = True
self.measurements = []
done = False
while self._pipe.poll(0.1):