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

Method test_objects

Lib/test/test_compare.py:335–340  ·  view source on GitHub ↗

Compare instances of type 'object'.

(self)

Source from the content-addressed store, hash-verified

333 b <= a
334
335 def test_objects(self):
336 """Compare instances of type 'object'."""
337 a = object()
338 b = object()
339 self.assert_equality_only(a, a, True)
340 self.assert_equality_only(a, b, False)
341
342 def test_comp_classes_same(self):
343 """Compare same-class instances with comparison methods."""

Callers

nothing calls this directly

Calls 1

assert_equality_onlyMethod · 0.95

Tested by

no test coverage detected