Skip to content
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

Fix tests on bigendian platforms #79

Merged

Conversation

avalentino
Copy link
Contributor

@avalentino avalentino commented Aug 18, 2020

This PR fixes a test failure on Bug Endian platforms that we discovered building the debian package for pygac (see [1]).

The issue seems to be in the test code, not in the library.

[1] https://buildd.debian.org/status/fetch.php?pkg=pygac&arch=s390x&ver=1.4.0-1&stamp=1596978522&raw=0

The PR is marked as WIP because the fix is till under test. We will give an acknowledgement once the test completes

Edit:
Tests on s390x completed successfully.

@avalentino avalentino changed the title [WIP] Fix tests on bigendian platforms Fix tests on bigendian platforms Aug 18, 2020
@sfinkens
Copy link
Member

Nice catch @avalentino ! Looks good to me, but since I'm not so familiar with endianness, I'd like to request a review from @mraspaud or @carloshorn 🙂

Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing this.
The original data is actually in big endian, so it would have made more sense to have the tests have big endian integers, but it doesn't really matter now.

@mraspaud mraspaud merged commit 5c59f2b into pytroll:master Aug 20, 2020
@avalentino avalentino deleted the fix-tests-on-bigendian-platforms branch August 20, 2020 16:40
@mraspaud mraspaud added the bug label Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants