Skip to content

BUG: Fix bugs found by testing in release mode. #10202

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

Merged
merged 2 commits into from
Dec 12, 2017

Conversation

charris
Copy link
Member

@charris charris commented Dec 11, 2017

Backport of #10193.

Fix a couple of bugs found by testing in release mode, closes #10185.

BUG: Fix numpy.testing.assert_equal in release mode.

To be complete, the NaT handling needs to raise AssertionError when
comparing NaT's with different types. That check was previously passed
on and the resulting check, which would succeed in development mode
because DeprecationWarning was converted to an error, warns in release
mode.

BUG: Fix test_1d_format test.

The test failed for numpy installed in release mode as the
PendingDeprecationWarning issued by object.format(a, '30') was no
longer converted to an error. The fix here is to make the test Python
version dependent and suppress the warning when needed.

The test failed for numpy installed in release mode as the
PendingDeprecationWarning issued by `object.__format__(a, '30')` was no
longer converted to an error. The fix here is to make the test Python
version dependent and suppress the warning when needed.
To be complete, the NaT handling needs to raise AssertionError when
comparing NaT's with different types. That check was previously passed
on and the resulting check, which would succeed in development mode
because DeprecationWarning was converted to an error, warns in release
mode.
@charris charris added this to the 1.14.0 release milestone Dec 11, 2017
@charris charris merged commit 295594a into numpy:maintenance/1.14.x Dec 12, 2017
@charris charris deleted the backport-10193 branch December 12, 2017 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant