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>
Tue, 8 Dec 2020 09:02:17 +0000 (09:02 +0000)
Forwarded: not-needed

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

tables/tests/test_index_backcompat.py

index 4d4e2618066acbac12b76e853b60781802f3cd98..5d9b9de7f90f844b10310a200e781b13e3b88c30 100644 (file)
@@ -6,8 +6,10 @@ from tables.tests.common import verbose
 from tables.tests.common import unittest, test_filename
 from tables.tests.common import PyTablesTestCase as TestCase
 
+import sys
 
 # Check indexes from PyTables version 2.0
+@unittest.skipIf(sys.byteorder != 'little', 'broken on big-endian')
 class IndexesTestCase(common.TestFileMixin, TestCase):
 
     def setUp(self):
@@ -145,11 +147,13 @@ class IndexesTestCase(common.TestFileMixin, TestCase):
 
 
 # Check indexes from PyTables version 2.0
+@unittest.skipIf(sys.byteorder != 'little', 'broken on big-endian')
 class Indexes2_0TestCase(IndexesTestCase):
     h5fname = test_filename("indexes_2_0.h5")
 
 
 # Check indexes from PyTables version 2.1
+@unittest.skipIf(sys.byteorder != 'little', 'broken on big-endian')
 class Indexes2_1TestCase(IndexesTestCase):
     h5fname = test_filename("indexes_2_1.h5")