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

Method test_mixed_cmp

Lib/test/test_userlist.py:114–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 self.assertIs(u, u2)
113
114 def test_mixed_cmp(self):
115 u = self.type2test([0, 1])
116 self._assert_cmp(u, [0, 1], 0)
117 self._assert_cmp(u, [0], 1)
118 self._assert_cmp(u, [0, 2], -1)
119
120 def test_getitemoverwriteiter(self):
121 # Verify that __getitem__ overrides *are* recognized by __iter__

Callers

nothing calls this directly

Calls 2

type2testMethod · 0.80
_assert_cmpMethod · 0.45

Tested by

no test coverage detected