diff options
author | Cyril Roelandt <tipecaml@gmail.com> | 2014-04-07 20:03:46 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2014-04-07 20:05:32 -0400 |
commit | ce0849cc25e7d0813f1fec82cd97fe3aadf9932b (patch) | |
tree | 25440c4370bcb82df8ddb579f0bf0764c4c9304e /gnu/packages | |
parent | 32d5c729522d02fe973cb245fe26262f040e0c13 (diff) | |
download | guix-ce0849cc25e7d0813f1fec82cd97fe3aadf9932b.tar.gz |
gnu: Python: disable failing tests on MIPS64.
* gnu/packages/patches/python-fix-tests.patch: disable two failing tests on MIPS64.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/patches/python-fix-tests.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/patches/python-fix-tests.patch b/gnu/packages/patches/python-fix-tests.patch index eed4f3633d..70e4aa05d5 100644 --- a/gnu/packages/patches/python-fix-tests.patch +++ b/gnu/packages/patches/python-fix-tests.patch @@ -74,3 +74,41 @@ http://bugs.python.org/issue20868 . def test_wait_result(self): if isinstance(self, ProcessesMixin) and sys.platform != 'win32': pid = os.getpid() +--- Lib/ctypes/test/test_libc.py 2014-04-07 23:17:41.351235000 +0200 ++++ Lib/ctypes/test/test_libc.py 2014-04-07 23:32:18.799235000 +0200 +@@ -2,6 +2,7 @@ + + from ctypes import * + import _ctypes_test ++import platform + + lib = CDLL(_ctypes_test.__file__) + +@@ -17,6 +18,8 @@ + import math + self.assertEqual(lib.my_sqrt(2.0), math.sqrt(2.0)) + ++ @unittest.skipIf(platform.machine() in ['mips64'], ++ "This test fails on this platform") + def test_qsort(self): + comparefunc = CFUNCTYPE(c_int, POINTER(c_char), POINTER(c_char)) + lib.my_qsort.argtypes = c_void_p, c_size_t, c_size_t, comparefunc +--- Lib/ctypes/test/test_callbacks.py 2014-04-07 23:15:42.835235000 +0200 ++++ Lib/ctypes/test/test_callbacks.py 2014-04-07 23:32:42.035235000 +0200 +@@ -1,6 +1,7 @@ + import unittest + from ctypes import * + import _ctypes_test ++import platform + + class Callbacks(unittest.TestCase): + functype = CFUNCTYPE +@@ -174,6 +175,8 @@ + + self.assertLess(diff, 0.01, "%s not less than 0.01" % diff) + ++ @unittest.skipIf(platform.machine() in ['mips64'], ++ "This test fails on this platform") + def test_issue_8959_a(self): + from ctypes.util import find_library + libc_path = find_library("c") |