agronholm / agronholm/anyio

UNIXSocket.aclose and _TrioSocketMixin.aclose in cancelled scope does not raise a cancelled error (does not checkpoint)

オープン
#1,288 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
2.5k
フォーク
260
平均マージ
1日 8時間
マージ済み PR(30日)
17

説明

### Things to check first

- [x] I have searched the existing issues and didn't find my bug already reported there

- [x] I have checked that my bug is still present in the latest release

### AnyIO version

a8900c22b58debb7cd43a4c8d94a1905e506a797

### Python version

py 3.14

### What happened?

```py
async def test_aclose_in_cancelled_scope_raises_cancelled_exc(
self, server_sock: socket.socket, socket_path: Path
) -> None:
exc = None
stream = await connect_unix(socket_path)

with CancelScope() as scope:
scope.cancel()
try:
await stream.aclose()
except get_cancelled_exc_class() as e:
exc = e
raise

assert exc is not None
```

failed

### How can we reproduce the bug?

see above

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。