mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Patch #1460496: round() now accepts keyword arguments.
This commit is contained in:
parent
338ef7d2bd
commit
ccadf84a1b
3 changed files with 20 additions and 13 deletions
|
@ -1395,6 +1395,9 @@ class BuiltinTest(unittest.TestCase):
|
|||
|
||||
self.assertEqual(round(-8.0, -1), -10.0)
|
||||
|
||||
# test new kwargs
|
||||
self.assertEqual(round(number=-8.0, ndigits=-1), -10.0)
|
||||
|
||||
self.assertRaises(TypeError, round)
|
||||
|
||||
def test_setattr(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue