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

Method check_exact_equal

Lib/test/test_statistics.py:945–948  ·  view source on GitHub ↗

Check that x equals y, and has the same type as well.

(self, x, y)

Source from the content-addressed store, hash-verified

943 # Test private _convert function.
944
945 def check_exact_equal(self, x, y):
946 """Check that x equals y, and has the same type as well."""
947 self.assertEqual(x, y)
948 self.assertIs(type(x), type(y))
949
950 def test_int(self):
951 # Test conversions to int.

Callers 5

test_intMethod · 0.95
test_fractionMethod · 0.95
test_floatMethod · 0.95
test_decimalMethod · 0.95
test_infMethod · 0.95

Calls 2

assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected