diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2011-10-24 09:31:52 (GMT) |
---|---|---|
committer | Mark Dickinson <mdickinson@enthought.com> | 2011-10-24 09:31:52 (GMT) |
commit | 39411f60a2d716a6e61f7a9b4c445b3d8492b9ef (patch) | |
tree | 5b4f34c9e72a66985abf0568925b3a7b1d5721d0 /Lib/test/test_decimal.py | |
parent | 037ffbf1823cc90fbb8d8c92050aca46d7583fae (diff) | |
download | cpython-39411f60a2d716a6e61f7a9b4c445b3d8492b9ef.zip cpython-39411f60a2d716a6e61f7a9b4c445b3d8492b9ef.tar.gz cpython-39411f60a2d716a6e61f7a9b4c445b3d8492b9ef.tar.bz2 |
Issue #13248, issue #8540: Remove deprecated Context._clamp attribute from Decimal module.
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r-- | Lib/test/test_decimal.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 96bbafe..014e9c7 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -1834,18 +1834,9 @@ class ContextAPItests(unittest.TestCase): # only, the attribute should be gettable/settable via both # `clamp` and `_clamp`; in Python 3.3, `_clamp` should be # removed. - c = Context(clamp = 0) - self.assertEqual(c.clamp, 0) - - with check_warnings(("", DeprecationWarning)): - c._clamp = 1 - self.assertEqual(c.clamp, 1) - with check_warnings(("", DeprecationWarning)): - self.assertEqual(c._clamp, 1) - c.clamp = 0 - self.assertEqual(c.clamp, 0) - with check_warnings(("", DeprecationWarning)): - self.assertEqual(c._clamp, 0) + c = Context() + with self.assertRaises(AttributeError): + clamp_value = c._clamp def test_abs(self): c = Context() |