diff --git a/Lib/_pydecimal.py b/Lib/_pydecimal.py index 8c0afd14d616e8..d07d12a9e60dc0 100644 --- a/Lib/_pydecimal.py +++ b/Lib/_pydecimal.py @@ -1824,9 +1824,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') """