Commit 2cc9adb
test(cuda.core): pickle a fresh harness instance for the IPC child process (#2868)
ChildErrorHarness.test_main passed the bound method self.child_main as
the Process target, so a rerun pickled the instance together with state
left by the failed attempt, such as a buffer whose memory resource the
finally block had already closed. Every rerun then failed inside
pickling and hid the original failure. Target a fresh instance instead
so nothing from an earlier attempt is pickled.
Issue #2775
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>1 parent 8b9bc03 commit 2cc9adb
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | | - | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
0 commit comments