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

Method test_shadowed_stdlib_array

Lib/test/test_reprlib.py:610–616  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

608 r.repr(test_object)
609
610 def test_shadowed_stdlib_array(self):
611 # Issue #113570: repr() should not be fooled by an array
612 class array:
613 def __repr__(self):
614 return "not array.array"
615
616 self.assertEqual(r(array()), "not array.array")
617
618 def test_shadowed_builtin(self):
619 # Issue #113570: repr() should not be fooled

Callers

nothing calls this directly

Calls 2

arrayClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected