From 2e5642422f6234fd8d0c082142b27340e588f96e Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 6 Mar 2017 17:01:06 +0200 Subject: bpo-29695: Remove bad keyword parameters in int(), bool(), float(), list() and tuple(). (#518) --- Lib/test/test_tuple.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Lib/test/test_tuple.py') diff --git a/Lib/test/test_tuple.py b/Lib/test/test_tuple.py index d3663acfd4..84c064f19f 100644 --- a/Lib/test/test_tuple.py +++ b/Lib/test/test_tuple.py @@ -27,9 +27,8 @@ class TupleTest(seq_tests.CommonTest): (1, 3, 5, 7, 9)) def test_keyword_args(self): - with self.assertWarns(DeprecationWarning): - self.assertEqual(tuple(sequence=(x for x in range(10) if x % 2)), - (1, 3, 5, 7, 9)) + with self.assertRaisesRegex(TypeError, 'keyword argument'): + tuple(sequence=()) def test_truth(self): super().test_truth() -- cgit v1.2.1