Skip to content

Commit

Permalink
Skip some tests on ppc64le
Browse files Browse the repository at this point in the history
  • Loading branch information
rjfarmer committed Feb 4, 2024
1 parent 7a7677d commit 55d8b3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gfort2py/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,7 @@ def is_64bit():

def is_big_endian():
return sys.byteorder == "big"


def is_ppc64le():
return platform.machine() == "ppc64le"
1 change: 1 addition & 0 deletions tests/complex_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def test_sub_cmplx_inout(self):
y = x.sub_cmplx_inout(v)
self.assertEqual(y.args["c"], v * 5)

@pytest.mark.skipif(gf.utils.is_ppc64le(), reason="Skip on ppc64le systems")
@pytest.mark.skipif(gf.utils.is_big_endian(), reason="Skip on big endian systems")
def test_func_cmplx_value(self):
v = complex(1.0, 1.0)
Expand Down

0 comments on commit 55d8b3a

Please sign in to comment.