diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 6d68ba456fcdf8..424d3f577e9f87 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -4769,6 +4769,16 @@ def test_divide_unbound_context(self): x = self.decimal.Decimal('1') y = x // 1 # should be fast + def test_modulo_unbound_context(self): + with self.unbound_context() as c: + x = self.decimal.Decimal('1') + y = x % 1 # should be fast + + def test_divmod_unbound_context(self): + with self.unbound_context() as c: + x = self.decimal.Decimal('1') + y = divmod(x, 1) # should be fast + def test_remainder_near(self): L = 1000 limit = sys.get_int_max_str_digits()