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

Method assertNotOrderable

Lib/test/test_class.py:605–613  ·  view source on GitHub ↗
(self, a, b)

Source from the content-addressed store, hash-verified

603 self.fail("attribute error for I.__init__ got masked")
604
605 def assertNotOrderable(self, a, b):
606 with self.assertRaises(TypeError):
607 a < b
608 with self.assertRaises(TypeError):
609 a > b
610 with self.assertRaises(TypeError):
611 a <= b
612 with self.assertRaises(TypeError):
613 a >= b
614
615 def testHashComparisonOfMethods(self):
616 # Test comparison and hash of methods

Callers 1

Calls 1

assertRaisesMethod · 0.45

Tested by

no test coverage detected