From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 31B6D1382C5 for ; Tue, 4 May 2021 15:50:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 52059E0831; Tue, 4 May 2021 15:50:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38A40E0831 for ; Tue, 4 May 2021 15:50:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F1EAA33BEF2 for ; Tue, 4 May 2021 15:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5ABB3737 for ; Tue, 4 May 2021 15:50:36 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1620143287.5a2f2b831f4190e74ccd2b6be263370d02fca56a.ulm@gentoo> Subject: [gentoo-commits] proj/g-sorcery:master commit in: tests/ X-VCS-Repository: proj/g-sorcery X-VCS-Files: tests/server.py X-VCS-Directories: tests/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 5a2f2b831f4190e74ccd2b6be263370d02fca56a X-VCS-Branch: master Date: Tue, 4 May 2021 15:50:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4297a4e8-e2dd-4d13-8e3b-0ed341d5a6bf X-Archives-Hash: 7fad3872741755c1246456cd7435e2f3 commit: 5a2f2b831f4190e74ccd2b6be263370d02fca56a Author: Brian Dolbec gentoo org> AuthorDate: Thu Apr 23 17:28:31 2020 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Tue May 4 15:48:07 2021 +0000 URL: https://gitweb.gentoo.org/proj/g-sorcery.git/commit/?id=5a2f2b83 tests/server.py: Add time.sleep() delay after shutdown This is to help prevent a possible threading lock error if traceback errors are raised. I was experiencing this fault while debugging python 3.7 and 3.8 test errors. It prevented the sys.exit() at the end of the tests. Signed-off-by: Brian Dolbec gentoo.org> Signed-off-by: Ulrich Müller gentoo.org> tests/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/server.py b/tests/server.py index 51d49b7..6a32a2d 100644 --- a/tests/server.py +++ b/tests/server.py @@ -13,6 +13,7 @@ import os import threading +import time from g_sorcery.compatibility import py2k @@ -49,3 +50,4 @@ class Server(threading.Thread): def shutdown(self): self.httpd.shutdown() + time.sleep(0.5)