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

Method test_from_number_subclass

Lib/test/test_decimal.py:834–837  ·  view source on GitHub ↗
(self, cls=None)

Source from the content-addressed store, hash-verified

832 self.assertRaises(TypeError, cls.from_number, object())
833
834 def test_from_number_subclass(self, cls=None):
835 class DecimalSubclass(self.decimal.Decimal):
836 pass
837 self.test_from_number(DecimalSubclass)
838
839 def test_unicode_digits(self):
840 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 1

test_from_numberMethod · 0.95

Tested by

no test coverage detected