summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-03-31 18:54:53 +0000
committerGeorg Brandl <georg@python.org>2006-03-31 18:54:53 +0000
commitccadf84a1bc1b7908f5dcefd6897f93e174c57b9 (patch)
tree6c0c0687136f478a428c3d3c0726827cb79bf36b /Lib/test
parent338ef7d2bd3c2ef507d7ef1edce42492dae28db0 (diff)
downloadcpython-git-ccadf84a1bc1b7908f5dcefd6897f93e174c57b9.tar.gz
Patch #1460496: round() now accepts keyword arguments.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_builtin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index a05babf288..fa36095735 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -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):