(self)
| 4686 | self.assertTrue(c.flags[Overflow]) |
| 4687 | |
| 4688 | def test_quantize(self): |
| 4689 | Decimal = self.decimal.Decimal |
| 4690 | localcontext = self.decimal.localcontext |
| 4691 | InvalidOperation = self.decimal.InvalidOperation |
| 4692 | |
| 4693 | with localcontext() as c: |
| 4694 | c.prec = 1 |
| 4695 | c.Emax = 1 |
| 4696 | c.Emin = -1 |
| 4697 | c.traps[InvalidOperation] = False |
| 4698 | x = Decimal(99).quantize(Decimal("1e1")) |
| 4699 | self.assertTrue(x.is_nan()) |
| 4700 | |
| 4701 | def test_radix(self): |
| 4702 | Decimal = self.decimal.Decimal |
nothing calls this directly
no test coverage detected