mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #27832: Make _normalize parameter to Fraction.__init__ keyword-only.
This commit is contained in:
parent
f4d28d4385
commit
7caf908c64
3 changed files with 5 additions and 1 deletions
|
|
@ -150,6 +150,7 @@ class FractionTest(unittest.TestCase):
|
|||
self.assertRaises(TypeError, F, "3/2", 3)
|
||||
self.assertRaises(TypeError, F, 3, 0j)
|
||||
self.assertRaises(TypeError, F, 3, 1j)
|
||||
self.assertRaises(TypeError, F, 1, 2, 3)
|
||||
|
||||
@requires_IEEE_754
|
||||
def testInitFromFloat(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue