diff options
author | 2020-04-23 10:28:31 -0700 | |
---|---|---|
committer | 2021-05-04 17:48:07 +0200 | |
commit | 5a2f2b831f4190e74ccd2b6be263370d02fca56a (patch) | |
tree | 09b9f1844e3e7f7f47670c240e5fe7f0eb8b98ec | |
parent | all_pythons.py: Update python versions (diff) | |
download | g-sorcery-5a2f2b831f4190e74ccd2b6be263370d02fca56a.tar.gz g-sorcery-5a2f2b831f4190e74ccd2b6be263370d02fca56a.tar.bz2 g-sorcery-5a2f2b831f4190e74ccd2b6be263370d02fca56a.zip |
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 <dolsen@gentoo.org>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | tests/server.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |