summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_build_meta.py
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-02-13 10:12:06 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-02-13 10:12:06 +0000
commit0504b5cdba5667153a4f08074a756fb29450357b (patch)
treec46738a54c14320a02d471f2943d168ea913f8c4 /setuptools/tests/test_build_meta.py
parente2425d2e88364797f77bab414f58b524194289e4 (diff)
downloadpython-setuptools-git-0504b5cdba5667153a4f08074a756fb29450357b.tar.gz
Kill process pool after timeout in test_build_meta
This is an attempt to avoid tasks lingering for hours as observed in the CI for the combination Windows+PyPy.
Diffstat (limited to 'setuptools/tests/test_build_meta.py')
-rw-r--r--setuptools/tests/test_build_meta.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py
index af98da68..11e1297e 100644
--- a/setuptools/tests/test_build_meta.py
+++ b/setuptools/tests/test_build_meta.py
@@ -38,6 +38,7 @@ class BuildBackend(BuildBackendBase):
try:
return task.result(TIMEOUT)
except futures.TimeoutError:
+ self.pool.shutdown(wait=False)
pytest.xfail(f"Backend did not respond before timeout ({TIMEOUT} s)")
return method