summaryrefslogtreecommitdiff
path: root/Lib/test/test_float.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-06 17:01:06 +0200
committerGitHub <noreply@github.com>2017-03-06 17:01:06 +0200
commit2e5642422f6234fd8d0c082142b27340e588f96e (patch)
tree8279099d6fc0b034aaeb0be40a1d30d9246afc81 /Lib/test/test_float.py
parentb76ad5121e2cfa89d6476d700cbcb65b7ffc39ac (diff)
downloadcpython-git-2e5642422f6234fd8d0c082142b27340e588f96e.tar.gz
bpo-29695: Remove bad keyword parameters in int(), bool(), float(), list() and tuple(). (#518)
Diffstat (limited to 'Lib/test/test_float.py')
-rw-r--r--Lib/test/test_float.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py
index 91e3b7ab49..238fdf7402 100644
--- a/Lib/test/test_float.py
+++ b/Lib/test/test_float.py
@@ -209,8 +209,8 @@ class GeneralFloatCases(unittest.TestCase):
self.assertIs(type(FloatSubclass(F())), FloatSubclass)
def test_keyword_args(self):
- with self.assertWarns(DeprecationWarning):
- self.assertEqual(float(x='3.14'), 3.14)
+ with self.assertRaisesRegex(TypeError, 'keyword argument'):
+ float(x='3.14')
def test_is_integer(self):
self.assertFalse((1.1).is_integer())