MCPcopy Index your code
hub / github.com/ipython/ipython / Tester

Class Tester

tests/test_formatters.py:538–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536
537def test_pass_correct_include_exclude():
538 class Tester(object):
539 def __init__(self, include=None, exclude=None):
540 self.include = include
541 self.exclude = exclude
542
543 def _repr_mimebundle_(self, include, exclude, **kwargs):
544 if include and (include != self.include):
545 raise ValueError("include got modified: display() may be broken.")
546 if exclude and (exclude != self.exclude):
547 raise ValueError("exclude got modified: display() may be broken.")
548
549 return None
550
551 include = {"a", "b", "c"}
552 exclude = {"c", "e", "f"}

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…