summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_float.py
diff options
context:
space:
mode:
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 91e3b7a..238fdf7 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())