Skip to content

Commit 06b3cdd

Browse files
committed
remove disable_threading_excepthook
1 parent a0e90cd commit 06b3cdd

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

trio/_core/_tests/test_thread_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66
from contextlib import contextmanager
77

8-
from .tutil import slow, gc_collect_harder, disable_threading_excepthook
8+
from .tutil import slow, gc_collect_harder
99
from .. import _thread_cache
1010
from .._thread_cache import start_thread_soon, ThreadCache
1111

trio/_core/_tests/tutil.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,6 @@ def restore_unraisablehook():
9595
sys.unraisablehook = prev
9696

9797

98-
@contextmanager
99-
def disable_threading_excepthook(): # pragma: no cover # not used
100-
if sys.version_info >= (3, 10):
101-
threading.excepthook, prev = threading.__excepthook__, threading.excepthook
102-
else:
103-
threading.excepthook, prev = _noop, threading.excepthook
104-
105-
try:
106-
yield
107-
finally:
108-
threading.excepthook = prev
109-
110-
11198
# template is like:
11299
# [1, {2.1, 2.2}, 3] -> matches [1, 2.1, 2.2, 3] or [1, 2.2, 2.1, 3]
113100
def check_sequence_matches(seq, template):

0 commit comments

Comments
 (0)