File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -2130,17 +2130,12 @@ def check_traceback(exc: KeyError) -> bool:
2130
2130
assert tb is not None
2131
2131
return tb .tb_frame .f_code is my_child_task .__code__
2132
2132
2133
- expected_exception = Matcher (KeyError , check = check_traceback )
2134
-
2135
- with RaisesGroup (expected_exception , expected_exception ):
2136
- # Trick: For now cancel/nursery scopes still leave a bunch of tb gunk
2137
- # behind. But if there's an ExceptionGroup, they leave it on the group,
2138
- # which lets us get a clean look at the KeyError itself. Someday I
2139
- # guess this will always be an ExceptionGroup (#611), but for now we can
2140
- # force it by raising two exceptions.
2133
+ with RaisesGroup (Matcher (KeyError , check = check_traceback )):
2134
+ # For now cancel/nursery scopes still leave a bunch of tb gunk behind.
2135
+ # But if there's an Exceptiongroup, they leave it on the group,
2136
+ # which lets us get a clean look at the KeyError itself.
2141
2137
async with _core .open_nursery () as nursery :
2142
2138
nursery .start_soon (my_child_task )
2143
- nursery .start_soon (my_child_task )
2144
2139
2145
2140
2146
2141
def test_contextvar_support () -> None :
Original file line number Diff line number Diff line change 68
68
setuptools
69
69
cython
70
70
set_env =
71
- CFLAGS = -DCYTHON_TRACE_NOGIL =1A
71
+ CFLAGS = -DCYTHON_TRACE_NOGIL =1
72
72
allowlist_externals =
73
73
sed
74
74
cp
You can’t perform that action at this time.
0 commit comments