diff --git a/Lib/_pydecimal.py b/Lib/_pydecimal.py index 2277578df5412b..e944c9fb21ca7f 100644 --- a/Lib/_pydecimal.py +++ b/Lib/_pydecimal.py @@ -1821,9 +1821,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') """