Skip to content

Commit ef3e52f

Browse files
committed
fix windows tests that trigger unraisablehook
1 parent 77d11d9 commit ef3e52f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

trio/_core/tests/test_windows.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Mark all the tests in this file as being windows-only
99
pytestmark = pytest.mark.skipif(not on_windows, reason="windows only")
1010

11-
from .tutil import slow, gc_collect_harder
11+
from .tutil import slow, gc_collect_harder, restore_unraisablehook
1212
from ... import _core, sleep, move_on_after
1313
from ...testing import wait_all_tasks_blocked
1414

@@ -111,6 +111,7 @@ def pipe_with_overlapped_read():
111111
kernel32.CloseHandle(ffi.cast("HANDLE", write_handle))
112112

113113

114+
@restore_unraisablehook()
114115
def test_forgot_to_register_with_iocp():
115116
with pipe_with_overlapped_read() as (write_fp, read_handle):
116117
with write_fp:

0 commit comments

Comments
 (0)