##// END OF EJS Templates
MAINT: remove support and testing on Python 3.8 (#14023)...
MAINT: remove support and testing on Python 3.8 (#14023) According to NEP 29 it is now time to remove support for Python 3.8 This commit removes support for Python 3.8 from the codebase, as well as removing the tests for Python 3.8 from the CI workflow. It also updates the `pyproject.toml` file to reflect the removal of Python 3.8 support.

File last commit:

r27453:90fdcaf8
r28229:304d8237 merge
Show More
test_shimmodule.py
12 lines | 387 B | text/x-python | PythonLexer
Jochen Ott
Add fallback for utils.ShimModule.__repr__
r27453 from IPython.utils.shimmodule import ShimModule
import IPython
def test_shimmodule_repr_does_not_fail_on_import_error():
shim_module = ShimModule("shim_module", mirror="mirrored_module_does_not_exist")
repr(shim_module)
def test_shimmodule_repr_forwards_to_module():
shim_module = ShimModule("shim_module", mirror="IPython")
assert repr(shim_module) == repr(IPython)