Skip to content

Conversation

@shoyer
Copy link
Member

@shoyer shoyer commented Mar 29, 2018

This test was turning all warnings into errors. Now it's more robust, and only
converts the appropriate warning into an error.

  • Closes dask ImportWarning causes pytest failure #2025 (remove if there is no corresponding issue, which should only be the case for minor changes)
  • Tests added (for all bug fixes or enhancements)
  • Tests passed (for all non-documentation changes)

This test turning all warnings into errors. Now it's more robust, and only
converts the appropriate warning into an error.

Fixes GH2025
if (len(filename) == 88 and
LooseVersion(nc4.__version__) < "1.3.1"):
warnings.warn(
<<<<<<< Updated upstream
Copy link
Contributor

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

'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')
=======
Copy link
Contributor

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 '
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E113 unexpected indentation

'upgrading netCDF4 to at least version 1.3.1. '
'More details can be found here: '
'https://github.com/pydata/xarray/issues/1745')
>>>>>>> Stashed changes
Copy link
Contributor

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

@shoyer shoyer merged commit 44cc50d into pydata:master Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dask ImportWarning causes pytest failure

2 participants