Skip to content

Failed to execute pytest. #939

Open
Open
@dabao1990

Description

@dabao1990
  1. spack install --overwrite --keep-stage --no-checksum -y [email protected]
  2. cd ipyparallel/tests
  3. pytes -s -v

============================
cat /etc/os-release
NAME="openEuler"
VERSION="22.03 (LTS-SP3)"
ID="openEuler"
VERSION_ID="22.03"
PRETTY_NAME="openEuler 22.03 (LTS-SP3)"
ANSI_COLOR="0;31"

===========================
The error information is as follows:


self = <ipyparallel.tests.test_client.TestClient object at 0xffff8d2892b0>

    @pytest.mark.skipif(os.name == 'nt', reason='timing out on Windows')
    def test_shutdown(self):
        ids = self.client.ids
        id0 = ids[-1]
        pid = self.client[id0].apply_sync(os.getpid)
>       self.client.shutdown(id0, block=True)

test_client.py:239:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client/client.py:1802: in shutdown
    f.wait()
../client/futures.py:30: in wait
    return self._evt.wait(timeout)
/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/python-3.8.8-kk3hqlp6z5u7ycjvcfcaqugvlbfxjxo6/lib/python3.8/threading.py:558: in wait
    signaled = self._cond.wait(timeout)
/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/python-3.8.8-kk3hqlp6z5u7ycjvcfcaqugvlbfxjxo6/lib/python3.8/threading.py:302: in wait
    waiter.acquire()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

sig = 14
frame = <frame at 0x3b741af0, file '/home/spack/opt/spack/linux-openeuler22-aarch64/gcc-10.3.1/python-3.8.8-kk3hqlp6z5u7ycjvcfcaqugvlbfxjxo6/lib/python3.8/threading.py', line 316, code wait>

    def _sigalarm(sig, frame):
>       raise TimeoutError(
            f"test did not finish in {self.test_timeout} seconds"
        )
E       TimeoutError: test did not finish in 30 seconds

clienttest.py:180: TimeoutError
FAILED test_client.py::TestClient::test_shutdown - TimeoutError: test did not finish in 30 seconds

Can you analyze it for me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions