Skip index backcompat tests on bingendian
authorAntonio Valentino <antonio.valentino@tiscali.it>
Sat, 3 Aug 2019 16:22:13 +0000 (16:22 +0000)
committerAntonio Valentino <antonio.valentino@tiscali.it>
Thu, 2 Jan 2025 19:03:09 +0000 (19:03 +0000)
Forwarded: not-needed

Gbp-Pq: Name 0004-Skip-index-backcompat-tests-on-bingendian.patch

tables/tests/test_index_backcompat.py

index d921baaf2645498e1c5de105e965fd42ce6bd939..0bcf026bcb20f3974beb65b772d64c14ae0ec1d8 100644 (file)
@@ -1,7 +1,9 @@
 from tables.tests import common
 
+import sys
 
 # Check indexes from PyTables version 2.0
+@common.unittest.skipIf(sys.byteorder != 'little', 'broken on big-endian')
 class IndexesTestCase(common.TestFileMixin, common.PyTablesTestCase):
 
     def setUp(self):
@@ -139,11 +141,13 @@ class IndexesTestCase(common.TestFileMixin, common.PyTablesTestCase):
 
 
 # Check indexes from PyTables version 2.0
+@common.unittest.skipIf(sys.byteorder != 'little', 'broken on big-endian')
 class Indexes2_0TestCase(IndexesTestCase):
     h5fname = common.test_filename("indexes_2_0.h5")
 
 
 # Check indexes from PyTables version 2.1
+@common.unittest.skipIf(sys.byteorder != 'little', 'broken on big-endian')
 class Indexes2_1TestCase(IndexesTestCase):
     h5fname = common.test_filename("indexes_2_1.h5")