Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Lib/test/test_decimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading