summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2021-07-19 16:55:48 +0200
committerBenjamin Berg <bberg@redhat.com>2021-07-22 14:22:21 +0200
commitf7da08c48a296ac136fa44377da5294f068797c6 (patch)
treee3ab7778992361a1ee7ff8357699627eaffcb3f7 /tests
parent4019d9c15fceb8e9aae7eea87ac63e1463d8366d (diff)
downloadgnome-settings-daemon-f7da08c48a296ac136fa44377da5294f068797c6.tar.gz
tests: Set OutputChecker thread to be a daemon thread
Otherwise the interpreter can apparently deadlock on shutdown trying to join the still running thread.
Diffstat (limited to 'tests')
-rw-r--r--tests/output_checker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/output_checker.py b/tests/output_checker.py
index 35c19f78..7cb1060a 100644
--- a/tests/output_checker.py
+++ b/tests/output_checker.py
@@ -43,7 +43,7 @@ class OutputChecker(object):
fcntl.fcntl(self._pipe_fd_w, fcntl.F_GETFL) | os.O_CLOEXEC)
# Start copier thread
- self._thread = threading.Thread(target=self._copy)
+ self._thread = threading.Thread(target=self._copy, daemon=True)
self._thread.start()
def _copy(self):