Important

This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7.

If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).

Module: conftest

6 Functions

IPython.conftest.pytest_collection_modifyitems(items)

This function is automatically run by pytest passing all collected test functions.

We use it to add asyncio marker to all async tests and assert we don’t use test functions that are async generators which wouldn’t make sense.

IPython.conftest.get_ipython()
IPython.conftest.work_path()
IPython.conftest.nopage(strng, start=0, screen_lines=0, pager_cmd=None)
IPython.conftest.xsys(self, cmd)

Replace the default system call with a capturing one for doctest.

IPython.conftest.inject()