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

Method eq

Lib/test/test_complex.py:743–745  ·  view source on GitHub ↗
(actual, expected)

Source from the content-addressed store, hash-verified

741
742 def test_from_number(self, cls=complex):
743 def eq(actual, expected):
744 self.assertEqual(actual, expected)
745 self.assertIs(type(actual), cls)
746
747 eq(cls.from_number(3.14), 3.14+0j)
748 eq(cls.from_number(3.14j), 3.14j)

Callers 1

test_richcompareMethod · 0.45

Calls 2

assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected