diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2022-01-17 15:15:56 -0700 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2022-01-17 15:36:35 -0700 |
commit | 9db35068c1410a2fdce508d84739457c0ca69007 (patch) | |
tree | c7158f74196a95174af153e401e99c51c99d0262 | |
parent | 2e2138865c122f47008d129aebf97b42e3af04b6 (diff) | |
download | waitress-9db35068c1410a2fdce508d84739457c0ca69007.tar.gz |
Join the queue thread after closing it in tests
-rw-r--r-- | tests/test_functional.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py index 4d1bcc3..f74a252 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -98,9 +98,10 @@ class SubprocessTests: self.proc.terminate() self.sock.close() # This give us one FD back ... - self.queue.close() self.proc.join() self.proc.close() + self.queue.close() + self.queue.join_thread() # The following is for the benefit of PyPy 3, for some reason it is # holding on to some resources way longer than necessary causing tests @@ -109,6 +110,7 @@ class SubprocessTests: # increase the limits before running tests, this works as well and # means we don't need to remember to do that. import gc + gc.collect() def assertline(self, line, status, reason, version): |