(error_list)
| 283 | # and savez functions in multithreaded environment |
| 284 | |
| 285 | def writer(error_list): |
| 286 | with temppath(suffix='.npz') as tmp: |
| 287 | arr = np.random.randn(500, 500) |
| 288 | try: |
| 289 | np.savez(tmp, arr=arr) |
| 290 | except OSError as err: |
| 291 | error_list.append(err) |
| 292 | |
| 293 | errors = [] |
| 294 | threads = [threading.Thread(target=writer, args=(errors,)) |
nothing calls this directly
no test coverage detected