From ea56dbfbc081fa2430d57c9f73fcb15779fa63bb Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Tue, 30 Jun 2020 15:29:54 +0200 Subject: [PATCH] pythonPackages.selectors2: fix build by disabling failing test_above_fd_setsize This fixes the following error in the `selectors2` test suite: ``` ====================================================================== ERROR: test_above_fd_setsize (tests.test_selectors2.PollSelectorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-python3.8-selectors2-2.0.1.drv-0/selectors2-2.0.1/tests/test_selectors2.py", line 530, in test_above_fd_setsize self.assertEqual(limit_nofile // 2, len(s.select())) File "/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-python3.8-selectors2-2.0.1.drv-0/selectors2-2.0.1/selectors2.py", line 402, in select fd_events = _syscall_wrapper(self._wrap_poll, True, timeout=timeout) File "/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-python3.8-selectors2-2.0.1.drv-0/selectors2-2.0.1/selectors2.py", line 662, in _syscall_wrapper return func(*args, **kwargs) File "/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-python3.8-selectors2-2.0.1.drv-0/selectors2-2.0.1/selectors2.py", line 397, in _wrap_poll result = self._poll.poll(timeout) OSError: [Errno 22] Invalid argument ---------------------------------------------------------------------- ``` --- pkgs/development/python-modules/selectors2/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/selectors2/default.nix b/pkgs/development/python-modules/selectors2/default.nix index 159047eafd7..96917f45be0 100644 --- a/pkgs/development/python-modules/selectors2/default.nix +++ b/pkgs/development/python-modules/selectors2/default.nix @@ -17,7 +17,8 @@ buildPythonPackage rec { # Trick to disable certain tests that depend on timing which # will always fail on hydra export TRAVIS="" - nosetests tests/test_selectors2.py + nosetests tests/test_selectors2.py \ + --exclude=test_above_fd_setsize ''; meta = with stdenv.lib; {