-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeWarning with respect to line buffering using Python 3.8. #12
Comments
I also have this special kind of warning even if other warnings are suppressed !!! |
The warnings library can suppress all warnings: import warnings
with warnings.catch_warnings():
warnings.simplefilter("ignore")
# invoke test suite |
That workaround silences other warnings as well which can be problematic especially in a testing environment. |
This specific one can be suppressed using the following:
|
/usr/lib/python3.10/os.py:1029: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used Can we remove line buffering from the os.fdopen() call here ? https://github.com/cgoldberg/concurrencytest/blob/master/concurrencytest.py#L72 |
Let's wait and see! |
That PR is identical to my #14 from two years ago. 😉 |
But the authors seem to do nothing? |
The author has not done a public action on GitHub since 2020-05-28. |
While our version is better, it is tricky to use it when we are trying to package things with pip. Drop it. Somewhat reduced functionality is provided by the upstream version[1], along with a rather annoying message each time it is used[2] [3]. [1] pip install concurrencytest [2] cgoldberg/concurrencytest#12 [3] cgoldberg/concurrencytest#14
While our version is better, it is tricky to use it when we are trying to package things with pip. Drop it. Somewhat reduced functionality is provided by the upstream version[1], along with a rather annoying message each time it is used[2] [3]. [1] pip install concurrencytest [2] cgoldberg/concurrencytest#12 [3] cgoldberg/concurrencytest#14 Signed-off-by: Simon Glass <[email protected]>
I'm getting the following warning using Python 3.8.3 and concurrencytest 0.1.2:
The text was updated successfully, but these errors were encountered: