Skip to content

IPython test timeout #95

@bedroge

Description

@bedroge

I've seen the following error a few times during the test step of installing IPython:

======================================================================
FAIL: test_aimport_module_completer (IPython.core.tests.test_completer.TestCompleter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/cvmfs/pilot.eessi-hpc.org/2021.03/software/linux/aarch64/graviton2/software/IPython/7.15.0-foss-2020a-Python-3.8.2/lib/python3.8/site-packages/IPython/core/tests/test_completer.py", line 1057, in test_aimport_module_completer
    nt.assert_in("io", matches)
AssertionError: 'io' not found in []
-------------------- >> begin captured stdout << ---------------------
Caching the list of root modules, please wait!
(This will only be done once - type '%rehashx' to reset cache!)
This is taking too long, we give up.
--------------------- >> end captured stdout << ----------------------
    """Fail immediately, with the given message."""
>>  raise self.failureException("'io' not found in []")

This is the actual test:

    def test_aimport_module_completer(self):
        ip = get_ipython()
        _, matches = ip.complete("i", "%aimport i")
        nt.assert_in("io", matches)
        nt.assert_not_in("int", matches)

Apparently, something is taking too long (slow I/O?) and causing a timeout. In all cases I was able to "solve" it by just redoing the installation.

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