File: test_shimmodule.py

package info (click to toggle)
ipython 8.35.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,636 kB
  • sloc: python: 42,461; sh: 376; makefile: 243
file content (12 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
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)