| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@vstinner @serhiy-storchaka please take a look. I know that you enjoy I/O shenanigans :) |
Sorry, something went wrong.
…ipten `runtest_mp` test worker now handles :exc:`BlockingIOError` to work around non-blocking pipes on Emscripten.
| """ | ||
| data = data.encode(stream.encoding) | ||
| # flush buffers, just in case | ||
| stream.flush() |
There was a problem hiding this comment.
It can fail here.
Sorry, something went wrong.
There was a problem hiding this comment.
A pipe can block. If you want to avoid errors when writing into a pipe: use a temporary named file instead.
Sorry, something went wrong.
|
A blocking pipe would not be an issue. The problem is that Emscripten on NodeJS uses a non-blocking pipe for standard streams. |
Sorry, something went wrong.
|
Closing in favor of approach #94253 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
runtest_mp test worker now handles :exc:BlockingIOError to work around
non-blocking pipes on Emscripten.