Patch #1460496: round() now accepts keyword arguments.

This commit is contained in:
Georg Brandl 2006-03-31 18:54:53 +00:00
parent 338ef7d2bd
commit ccadf84a1b
3 changed files with 20 additions and 13 deletions

View file

@ -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):