Clean up/Fix runtime warning messages in python unit test standard error
Open
core
P3
python
tests
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
Description
Currently the log of python unit test results contains thousands of lines of runtime warning / future warning / deprecation warnings, making trouble shooting during development inconvenient. Most of the warning messages are not necessary at all and could be suppressed or fixed if possible.
For example, the most popped message is hundreds of lines of 'RuntimeWarning: Mean of empty slice
return np.nanmean(a, axis, out=out, keepdims=keepdims)'
raised in dataframe tests, which could be suppressed.
Imported from Jira [BEAM-14474](https://issues.apache.org/jira/browse/BEAM-14474). Original Jira may contain additional context.
Reported by: yihu.
Contributor guide
Assessment
This issue has not been assessed yet.