2017-10-20 18:31:31 +00:00
|
|
|
commit ea4d6a12548eea7ce0424feea13a499fb7085e96
|
|
|
|
Author: rpm-build <rpm-build>
|
|
|
|
Date: Wed Mar 29 04:31:55 2017 +0200
|
|
|
|
|
|
|
|
011-no-faulthandler.patch
|
|
|
|
|
|
|
|
diff --git a/lib-python/3/test/support/__init__.py b/lib-python/3/test/support/__init__.py
|
2019-10-14 18:40:57 +00:00
|
|
|
index faa1ba7..2edadc9 100644
|
2017-10-20 18:31:31 +00:00
|
|
|
--- a/lib-python/3/test/support/__init__.py
|
|
|
|
+++ b/lib-python/3/test/support/__init__.py
|
2019-10-14 18:40:57 +00:00
|
|
|
@@ -7,7 +7,6 @@ import collections.abc
|
2017-10-20 18:31:31 +00:00
|
|
|
import contextlib
|
2019-10-14 18:40:57 +00:00
|
|
|
import datetime
|
2017-10-20 18:31:31 +00:00
|
|
|
import errno
|
|
|
|
-import faulthandler
|
|
|
|
import fnmatch
|
|
|
|
import functools
|
|
|
|
import gc
|
2019-10-14 18:40:57 +00:00
|
|
|
@@ -70,6 +69,11 @@ try:
|
2017-10-20 18:31:31 +00:00
|
|
|
except ImportError:
|
|
|
|
resource = None
|
|
|
|
|
|
|
|
+try:
|
|
|
|
+ import faulthandler
|
|
|
|
+except ImportError:
|
|
|
|
+ faulthandler = None
|
|
|
|
+
|
|
|
|
__all__ = [
|
|
|
|
# globals
|
|
|
|
"PIPE_MAX_SIZE", "verbose", "max_memuse", "use_resources", "failfast",
|
2019-10-14 18:40:57 +00:00
|
|
|
@@ -2231,7 +2235,8 @@ def start_threads(threads, unlock=None):
|
2017-10-20 18:31:31 +00:00
|
|
|
finally:
|
|
|
|
started = [t for t in started if t.isAlive()]
|
|
|
|
if started:
|
|
|
|
- faulthandler.dump_traceback(sys.stdout)
|
|
|
|
+ if faulthandler is not None:
|
|
|
|
+ faulthandler.dump_traceback(sys.stdout)
|
|
|
|
raise AssertionError('Unable to join %d threads' % len(started))
|
|
|
|
|
|
|
|
@contextlib.contextmanager
|