summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2014-04-30 17:15:38 (GMT)
committerStefan Krah <skrah@bytereef.org>2014-04-30 17:15:38 (GMT)
commitb151f8f60b3ea7199d4d98ec77f2e6fb03b8b7fb (patch)
tree7254b61d620d92178c03051cca8ad3cf715d55ad /Lib/test/test_decimal.py
parent5c2ac8c1c664d17924157ed769a7541c9228a1e3 (diff)
downloadcpython-b151f8f60b3ea7199d4d98ec77f2e6fb03b8b7fb.zip
cpython-b151f8f60b3ea7199d4d98ec77f2e6fb03b8b7fb.tar.gz
cpython-b151f8f60b3ea7199d4d98ec77f2e6fb03b8b7fb.tar.bz2
Issue #10650: Remove the non-standard 'watchexp' parameter from the
Decimal.quantize() method in the Python version. It had never been present in the C version.
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index 4b27907..339fe7c 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -4448,18 +4448,6 @@ class PyCoverage(Coverage):
class PyFunctionality(unittest.TestCase):
"""Extra functionality in decimal.py"""
- def test_py_quantize_watchexp(self):
- # watchexp functionality
- Decimal = P.Decimal
- localcontext = P.localcontext
-
- with localcontext() as c:
- c.prec = 1
- c.Emax = 1
- c.Emin = -1
- x = Decimal(99999).quantize(Decimal("1e3"), watchexp=False)
- self.assertEqual(x, Decimal('1.00E+5'))
-
def test_py_alternate_formatting(self):
# triples giving a format, a Decimal, and the expected result
Decimal = P.Decimal