mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #16431: Also fix the opposite direction.
This commit is contained in:
parent
f4abc7b8a0
commit
ed16eff57e
2 changed files with 5 additions and 1 deletions
|
@ -2052,6 +2052,10 @@ class UsabilityTest(unittest.TestCase):
|
|||
self.assertIs(type(b), MyDecimal)
|
||||
self.assertEqual(a, b)
|
||||
|
||||
c = Decimal(b)
|
||||
self.assertIs(type(c), Decimal)
|
||||
self.assertEqual(a, c)
|
||||
|
||||
def test_implicit_context(self):
|
||||
Decimal = self.decimal.Decimal
|
||||
getcontext = self.decimal.getcontext
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue