MCPcopy Index your code
hub / github.com/python/cpython / test_shadowed_stdlib_array

Method test_shadowed_stdlib_array

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

arrayClass · 0.85
rFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected