MCPcopy Create free account
hub / github.com/ipython/ipython / test_whos

Function test_whos

IPython/core/tests/test_magic.py:600–606  ·  view source on GitHub ↗

Check that whos is protected against objects where repr() fails.

()

Source from the content-addressed store, hash-verified

598 """
599
600def test_whos():
601 """Check that whos is protected against objects where repr() fails."""
602 class A(object):
603 def __repr__(self):
604 raise Exception()
605 _ip.user_ns['a'] = A()
606 _ip.magic("whos")
607
608def doctest_precision():
609 """doctest for %precision

Callers

nothing calls this directly

Calls 2

AClass · 0.70
magicMethod · 0.45

Tested by

no test coverage detected