diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-06 17:01:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 17:01:06 +0200 |
commit | 2e5642422f6234fd8d0c082142b27340e588f96e (patch) | |
tree | 8279099d6fc0b034aaeb0be40a1d30d9246afc81 /Lib/test/test_float.py | |
parent | b76ad5121e2cfa89d6476d700cbcb65b7ffc39ac (diff) | |
download | cpython-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.py | 4 |
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()) |