-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix test_88_character_filename_segmentation_fault #2026
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
Conversation
This test turning all warnings into errors. Now it's more robust, and only converts the appropriate warning into an error. Fixes GH2025
xarray/backends/netCDF4_.py
Outdated
| if (len(filename) == 88 and | ||
| LooseVersion(nc4.__version__) < "1.3.1"): | ||
| warnings.warn( | ||
| <<<<<<< Updated upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E122 continuation line missing indentation or outdented
E999 SyntaxError: invalid syntax
E225 missing whitespace around operator
E227 missing whitespace around bitwise or shift operator
xarray/backends/netCDF4_.py
Outdated
| 'upgrading netCDF4 to at least version 1.3.1.\n' | ||
| 'More details can be found here:\n' | ||
| 'https://github.com/pydata/xarray/issues/1745 \n') | ||
| ======= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E305 expected 2 blank lines after class or function definition, found 0
E225 missing whitespace around operator
| 'More details can be found here:\n' | ||
| 'https://github.com/pydata/xarray/issues/1745 \n') | ||
| ======= | ||
| 'A segmentation fault may occur when the ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E113 unexpected indentation
xarray/backends/netCDF4_.py
Outdated
| 'upgrading netCDF4 to at least version 1.3.1. ' | ||
| 'More details can be found here: ' | ||
| 'https://github.com/pydata/xarray/issues/1745') | ||
| >>>>>>> Stashed changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E128 continuation line under-indented for visual indent
W503 line break before binary operator
E225 missing whitespace around operator
This test was turning all warnings into errors. Now it's more robust, and only
converts the appropriate warning into an error.