diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-11-07 22:20:10 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-11-07 22:20:10 (GMT) |
commit | fc55bb1cc53b62cc461827755edf2be6cb07d636 (patch) | |
tree | 68a70fc2cdfb4ba7f453a51826031b2c394a0ce2 /Lib | |
parent | 15c02e304852596f2468f5edc32cb57d496ce9ca (diff) | |
parent | f4abc7b8a016da5b1783f471f2f376d7e9c27d60 (diff) | |
download | cpython-fc55bb1cc53b62cc461827755edf2be6cb07d636.zip cpython-fc55bb1cc53b62cc461827755edf2be6cb07d636.tar.gz cpython-fc55bb1cc53b62cc461827755edf2be6cb07d636.tar.bz2 |
Merge 3.3.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_decimal.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index ec5db9f..99faf78 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -2047,6 +2047,11 @@ class UsabilityTest(unittest.TestCase): self.assertIs(type(d), MyDecimal) self.assertEqual(d, d1) + a = Decimal('1.0') + b = MyDecimal(a) + self.assertIs(type(b), MyDecimal) + self.assertEqual(a, b) + def test_implicit_context(self): Decimal = self.decimal.Decimal getcontext = self.decimal.getcontext |