Commit 8e56dda
Fix cross-loop test: compare transport identity, not id()
After close(), Python can reuse the freed memory address for the next
transport, making id() values match across separate asyncio.run()
calls. Keep the first transport reference alive and use `is not`
instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 000479a commit 8e56dda
1 file changed
Lines changed: 6 additions & 6 deletions
File tree
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | | - | |
302 | | - | |
| 301 | + | |
| 302 | + | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
0 commit comments