(error_list)
| 260 | # and savez functions in multithreaded environment |
| 261 | |
| 262 | def writer(error_list): |
| 263 | with temppath(suffix='.npz') as tmp: |
| 264 | arr = np.random.randn(500, 500) |
| 265 | try: |
| 266 | np.savez(tmp, arr=arr) |
| 267 | except OSError as err: |
| 268 | error_list.append(err) |
| 269 | |
| 270 | errors = [] |
| 271 | threads = [threading.Thread(target=writer, args=(errors,)) |
nothing calls this directly
no test coverage detected