There was an error while loading. Please reload this page.
1 parent 19bfd4d commit 951e57eCopy full SHA for 951e57e
setuptools/tests/test_build_meta.py
@@ -1,4 +1,5 @@
1
import os
2
+import sys
3
import shutil
4
import signal
5
import tarfile
@@ -14,6 +15,7 @@
14
15
16
17
TIMEOUT = int(os.getenv("TIMEOUT_BACKEND_TEST", "180")) # in seconds
18
+IS_PYPY = '__pypy__' in sys.builtin_module_names
19
20
21
class BuildBackendBase:
@@ -44,6 +46,10 @@ def method(*args, **kw):
44
46
self.pool.shutdown(wait=False) # doesn't stop already running processes
45
47
self._kill(pid)
48
pytest.xfail(f"Backend did not respond before timeout ({TIMEOUT} s)")
49
+ except (futures.process.BrokenProcessPool, MemoryError):
50
+ if IS_PYPY:
51
+ pytest.xfail("PyPy frequently fails tests with ProcessPoolExector")
52
+ raise
53
54
return method
55
0 commit comments