From 9a1e9dd1116b27d0b577cf501486893530cce1c8 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 24 Sep 2024 02:31:28 +0200 Subject: [PATCH] [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 --- Lib/test/test_decimal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 46755107de0..12479e32d0f 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -2071,7 +2071,9 @@ class UsabilityTest: #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'),