https://github.com/python/cpython/commit/9a1e9dd1116b27d0b577cf501486893530cce1c8
commit: 9a1e9dd1116b27d0b577cf501486893530cce1c8
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: Yhg1s <[email protected]>
date: 2024-09-23T17:31:28-07:00
summary:

[3.13] gh-123811: Test that round(Decimal) can return signed zero (GH-124007) 
(#124048)

gh-123811: Test that round(Decimal) can return signed zero (GH-124007)
(cherry picked from commit b46c65ed2b78214cb8914779ac4e8d343ac4775e)

Co-authored-by: Sergey B Kirpichev <[email protected]>

files:
M Lib/test/test_decimal.py

diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index 46755107de0102..12479e32d0f5db 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -2071,7 +2071,9 @@ def test_tonum_methods(self):
         #to quantize, which is already extensively tested
         test_triples = [
             ('123.456', -4, '0E+4'),
+            ('-123.456', -4, '-0E+4'),
             ('123.456', -3, '0E+3'),
+            ('-123.456', -3, '-0E+3'),
             ('123.456', -2, '1E+2'),
             ('123.456', -1, '1.2E+2'),
             ('123.456', 0, '123'),

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to