Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.mercurial.tests.test_hgutil::test_clone_timeout
Failed

TEST RESULT

Run At
Apr 27 2021, 5:39 PM
Details
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3fac0dde10> def test_clone_timeout(monkeypatch): src = "https://www.mercurial-scm.org/repo/hello" dest = "/dev/null" timeout = 1 def clone(*args, **kwargs): time.sleep(5) monkeypatch.setattr(hg, "clone", clone) with pytest.raises(hgutil.CloneTimeout) as e: > hgutil.clone(src, dest, timeout) .tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/tests/test_hgutil.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/hgutil.py:87: in clone process.join(1) .tox/py3/lib/python3.7/site-packages/billiard/process.py:148: in join res = self._popen.wait(timeout) .tox/py3/lib/python3.7/site-packages/billiard/popen_fork.py:54: in wait if not wait([self.sentinel], timeout): .tox/py3/lib/python3.7/site-packages/billiard/connection.py:996: in wait return _poll(object_list, timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fds = [None], timeout = 1000 def _poll(fds, timeout): if timeout is not None: timeout = int(timeout * 1000) # timeout is in milliseconds fd_map = {} pollster = select.poll() for fd in fds: > pollster.register(fd, select.POLLIN) E TypeError: argument must be an int, or have a fileno() method. .tox/py3/lib/python3.7/site-packages/billiard/connection.py:968: TypeError