MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_extend_mutable_list2

Method test_extend_mutable_list2

Lib/test/test_xml_etree.py:2783–2800  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2781 e.extend(L)
2782
2783 def test_extend_mutable_list2(self):
2784 class X:
2785 @property
2786 def __class__(self):
2787 del L[:]
2788 return ET.Element
2789 L = [X(), ET.Element('baz')]
2790 e = ET.Element('foo')
2791 try:
2792 e.extend(L)
2793 except TypeError:
2794 pass
2795
2796 class Y(X, ET.Element):
2797 pass
2798 L = [Y('bar'), ET.Element('baz')]
2799 e = ET.Element('foo')
2800 e.extend(L)
2801
2802 def test_remove_with_clear_assume_missing(self):
2803 # gh-126033: Check that a concurrent clear() for an assumed-to-be

Callers

nothing calls this directly

Calls 3

extendMethod · 0.95
XClass · 0.70
YClass · 0.70

Tested by

no test coverage detected