diff --git a/Lib/_pydecimal.py b/Lib/_pydecimal.py index 5b60570c6c592a..81bb04363f9564 100644 --- a/Lib/_pydecimal.py +++ b/Lib/_pydecimal.py @@ -1796,9 +1796,10 @@ def __round__(self, n=None): Decimal('123.46') >>> round(Decimal('123.456'), -2) Decimal('1E+2') - >>> round(Decimal('-Infinity'), 37) + >>> with localcontext(ExtendedContext): + ... round(Decimal('-Infinity'), 37) + ... round(Decimal('sNaN123'), 0) Decimal('NaN') - >>> round(Decimal('sNaN123'), 0) Decimal('NaN123') """