guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: Python: disable test_wait_result() as it fails on some


From: Mark H Weaver
Subject: Re: [PATCH] gnu: Python: disable test_wait_result() as it fails on some setups
Date: Mon, 07 Apr 2014 02:17:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Cyril Roelandt <address@hidden> writes:

> * gnu/packages/patches/python-fix-tests.patch: disable a failing test.
> ---
>  gnu/packages/patches/python-fix-tests.patch | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/gnu/packages/patches/python-fix-tests.patch 
> b/gnu/packages/patches/python-fix-tests.patch
> index fecebda..eed4f36 100644
> --- a/gnu/packages/patches/python-fix-tests.patch
> +++ b/gnu/packages/patches/python-fix-tests.patch
> @@ -64,3 +64,13 @@ http://bugs.python.org/issue20868 .
>       @unittest.skipUnless(support.is_resource_enabled('network'),
>                            'network is not enabled')
>       def test_idna(self):
> +--- Lib/test/test_multiprocessing.py 2014-04-06 23:12:27.575235000 +0200
> ++++ Lib/test/test_multiprocessing.py 2014-04-06 23:13:04.827235000 +0200
> +@@ -1016,6 +1016,7 @@
> +         if pid is not None:
> +             os.kill(pid, signal.SIGINT)
> + 
> ++    @unittest.skipIf(True, "This fails for unknown reasons on Guix")
> +     def test_wait_result(self):
> +         if isinstance(self, ProcessesMixin) and sys.platform != 'win32':
> +             pid = os.getpid()

This fixes the build on x86_64 for me, but there are still test failures
on MIPS:

--8<---------------cut here---------------start------------->8---
======================================================================
FAIL: test_issue_8959_a (ctypes.test.test_callbacks.SampleCallbacksTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/tmp/nix-build-python-3.3.3.drv-0/Python-3.3.3/Lib/ctypes/test/test_callbacks.py",
 line 191, in test_issue_8959_a
    self.assertEqual(array[:], [1, 5, 7, 33, 99])
AssertionError: Lists differ: [33, 7, 99, 1, 5] != [1, 5, 7, 33, 99]

First differing element 0:
33
1

- [33, 7, 99, 1, 5]
+ [1, 5, 7, 33, 99]

======================================================================
FAIL: test_qsort (ctypes.test.test_libc.LibTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/tmp/nix-build-python-3.3.3.drv-0/Python-3.3.3/Lib/ctypes/test/test_libc.py", 
line 30, in test_qsort
    self.assertEqual(chars.raw, b"   ,,aaaadmmmnpppsss\x00")
AssertionError: b'mmaappss  dna ,,maps\x00' != b'   ,,aaaadmmmnpppsss\x00'

----------------------------------------------------------------------
Ran 346 tests in 4.092s

FAILED (failures=2, skipped=1)
Makefile:881: recipe for target 'test' failed
make: *** [test] Error 1
phase `check' failed after 661 seconds
--8<---------------cut here---------------end--------------->8---

I suppose that these are genuine bugs in the ctypes module for MIPS.

     Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]