MCPcopy Create free account
hub / github.com/ipython/traitlets / test_super_bad_args

Function test_super_bad_args

tests/test_traitlets.py:2802–2810  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2800
2801
2802def test_super_bad_args():
2803 class SuperHasTraits(HasTraits):
2804 a = Integer()
2805
2806 w = ["Passing unrecognized arguments"]
2807 with expected_warnings(w):
2808 obj = SuperHasTraits(a=1, b=2)
2809 assert obj.a == 1
2810 assert not hasattr(obj, "b")
2811
2812
2813def test_default_mro():

Callers

nothing calls this directly

Calls 2

expected_warningsFunction · 0.85
SuperHasTraitsClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…