MCPcopy Index your code
hub / github.com/RustPython/RustPython / assertNotOrderable

Method assertNotOrderable

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

Source from the content-addressed store, hash-verified

605 self.fail("attribute error for I.__init__ got masked")
606
607 def assertNotOrderable(self, 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 with self.assertRaises(TypeError):
615 a >= b
616
617 def testHashComparisonOfMethods(self):
618 # Test comparison and hash of methods

Callers 1

Calls 1

assertRaisesMethod · 0.45

Tested by

no test coverage detected