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>
Wed, 8 Jan 2025 00:32:06 +0000 (00:32 +0000)
Forwarded: not-needed

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

tables/tests/test_index_backcompat.py

index ced5c2b52088b9d0c1070bb5e5a107aaedb3d249..9d718e8a2dbda9c071668d839da7671bd331f3d7 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):
@@ -138,11 +140,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")