[h5py] 05/09: Fix arch name for ppc64le

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 25 14:28:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository h5py.

commit 9607212a1a3999edf25bccddb7ddf52e1c67ece3
Author: Martin Raspaud <martin.raspaud at smhi.se>
Date:   Wed Jan 25 09:30:58 2017 +0100

    Fix arch name for ppc64le
    
    Signed-off-by: Martin Raspaud <martin.raspaud at smhi.se>
---
 h5py/h5t.pyx               | 2 +-
 h5py/tests/old/test_h5t.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/h5py/h5t.pyx b/h5py/h5t.pyx
index 8221302..20755e4 100644
--- a/h5py/h5t.pyx
+++ b/h5py/h5t.pyx
@@ -952,7 +952,7 @@ cdef class TypeFloatID(TypeAtomicID):
     cdef object py_dtype(self):
         # Translation function for floating-point types
 
-        if MACHINE == 'ppc64el':
+        if MACHINE == 'ppc64le':
             size = self.get_size()                  # int giving number of bytes
             order = _order_map[self.get_order()]    # string with '<' or '>'
 
diff --git a/h5py/tests/old/test_h5t.py b/h5py/tests/old/test_h5t.py
index f2f3063..08b2503 100644
--- a/h5py/tests/old/test_h5t.py
+++ b/h5py/tests/old/test_h5t.py
@@ -67,7 +67,7 @@ class TestTypeFloatID(TestCase):
 
     def test_custom_float_promotion(self):
         """Custom floats are correctly promoted to standard floats on read."""
-        if h5t.MACHINE == 'ppc64el':
+        if h5t.MACHINE == 'ppc64le':
             return
 
         test_filename = self.mktemp()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git



More information about the debian-science-commits mailing list