Skip to content

Commit 3410cc1

Browse files
mbyrnepr2skirpichev
andcommitted
Fix a doctest in Lib/_pydecimal.py which was failing when run
directly on the module via the command: ``./python.exe -m doctest Lib/_pydecimal.py``. Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent e99650b commit 3410cc1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/_pydecimal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,6 +1796,7 @@ def __round__(self, n=None):
17961796
Decimal('123.46')
17971797
>>> round(Decimal('123.456'), -2)
17981798
Decimal('1E+2')
1799+
>>> setcontext(ExtendedContext)
17991800
>>> round(Decimal('-Infinity'), 37)
18001801
Decimal('NaN')
18011802
>>> round(Decimal('sNaN123'), 0)

0 commit comments

Comments
 (0)