mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #7435: Remove duplicate int/long tests, and other
references to long in py3k. Patch provided by flox.
This commit is contained in:
parent
c39aad7c27
commit
5c2db37c20
14 changed files with 64 additions and 607 deletions
|
@ -1274,7 +1274,7 @@ class DecimalUsabilityTest(unittest.TestCase):
|
|||
self.assertEqual(repr(d), "Decimal('15.32')") # repr
|
||||
|
||||
def test_tonum_methods(self):
|
||||
#Test float, int and long methods.
|
||||
#Test float and int methods.
|
||||
|
||||
d1 = Decimal('66')
|
||||
d2 = Decimal('15.32')
|
||||
|
@ -1283,10 +1283,6 @@ class DecimalUsabilityTest(unittest.TestCase):
|
|||
self.assertEqual(int(d1), 66)
|
||||
self.assertEqual(int(d2), 15)
|
||||
|
||||
#long
|
||||
self.assertEqual(int(d1), 66)
|
||||
self.assertEqual(int(d2), 15)
|
||||
|
||||
#float
|
||||
self.assertEqual(float(d1), 66)
|
||||
self.assertEqual(float(d2), 15.32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue