Skip to content

MAINT: Relax asserts to match relaxed reducelike resolution behaviour#20754

Merged
charris merged 1 commit intonumpy:mainfrom
seberg:fixup-relax-dtype-identity
Jan 6, 2022
Merged

MAINT: Relax asserts to match relaxed reducelike resolution behaviour#20754
charris merged 1 commit intonumpy:mainfrom
seberg:fixup-relax-dtype-identity

Conversation

@seberg
Copy link
Member

@seberg seberg commented Jan 6, 2022

This closes gh-20751, which was due to the assert not being noticed
triggered (not sure why) during initial CI run.
The behaviour is relaxed, so the assert must also be relaxed.

Copy link
Contributor

@mhvk mhvk left a comment

Choose a reason for hiding this comment

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

Very strange indeed that this didn't cause problems during regular CI. Is there no debug run normally?

Anyway, looks good!

@mhvk
Copy link
Contributor

mhvk commented Jan 6, 2022

p.s. Obviously should wait for tests to finish -- do they include the test that failed after merging #20729? If not, then perhaps this PR should also adjust the CI matrix...

@seberg
Copy link
Member Author

seberg commented Jan 6, 2022

The test that failed was the newly added one, so it should be run (and I checked the debug run locally this time).

I just checked, the debug runs had failed the first time as well, but probably because of a failed lint because of a 80 character line limit, we missed that...

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Jan 6, 2022
@charris charris added this to the 1.22.1 release milestone Jan 6, 2022
@mhvk
Copy link
Contributor

mhvk commented Jan 6, 2022

OK, great that we now know why we missed it...

This closes numpygh-20751, which was due to the assert not being noticed
triggered (not sure why) during initial CI run.
The behaviour is relaxed, so the assert must also be relaxed.
@seberg seberg force-pushed the fixup-relax-dtype-identity branch from b170cbc to ca976a1 Compare January 6, 2022 20:35
@seberg
Copy link
Member Author

seberg commented Jan 6, 2022

(just fixed up the comment slightly)

@charris charris merged commit 4e436ff into numpy:main Jan 6, 2022
@charris
Copy link
Member

charris commented Jan 6, 2022

Thanks Sebastian.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jan 6, 2022
@charris charris removed this from the 1.22.1 release milestone Jan 6, 2022
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.

BUG: After merging #20729, the debug test runs started segfaulting.

3 participants