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

Class array

Lib/test/test_reprlib.py:610–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

test_bytesMethod · 0.85
invertMethod · 0.85
fromfileMethod · 0.85
test_encodebytesMethod · 0.85
test_decodebytesMethod · 0.85
check_other_typesMethod · 0.85
test_b64encodeMethod · 0.85
test_b16decodeMethod · 0.85
test_containerMethod · 0.85

Calls

no outgoing calls

Tested by 15

test_bytesMethod · 0.68
invertMethod · 0.68
fromfileMethod · 0.68
test_encodebytesMethod · 0.68
test_decodebytesMethod · 0.68
check_other_typesMethod · 0.68
test_b64encodeMethod · 0.68
test_b16decodeMethod · 0.68
test_containerMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…