Repository navigation
Commit 739a818
committed
test(cuda.core): patch os only in _file_stream for the fstat atime test
test_filestream_touch_atime_swallows_fstat_failure replaced os.fstat for the whole process. pytest 9.2 calls os.fstat in its fd output capture while the test runs, so the test failed under pytest 9.2.0 with the patched OSError raised from pytest's CaptureManager, although cuda.core swallowed its own fstat failure. Patch os, fstat included, only as cuda.core.utils._program_cache._file_stream sees it.
Test change written with Claude Opus 5.5 and reviewed by the contributor.
Signed-off-by: 0z5a <[email protected]>1 parent b6f997e commit 739a818
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2132 | 2132 | | |
2133 | 2133 | | |
2134 | 2134 | | |
| 2135 | + | |
2135 | 2136 | | |
2136 | 2137 | | |
2137 | 2138 | | |
| |||
2171 | 2172 | | |
2172 | 2173 | | |
2173 | 2174 | | |
2174 | | - | |
2175 | | - | |
2176 | | - | |
2177 | | - | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
2178 | 2190 | | |
2179 | 2191 | | |
2180 | 2192 | | |
| |||
0 commit comments