diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-06 15:01:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 15:01:06 (GMT) |
commit | 2e5642422f6234fd8d0c082142b27340e588f96e (patch) | |
tree | 8279099d6fc0b034aaeb0be40a1d30d9246afc81 /Lib/test/test_tuple.py | |
parent | b76ad5121e2cfa89d6476d700cbcb65b7ffc39ac (diff) | |
download | cpython-2e5642422f6234fd8d0c082142b27340e588f96e.zip cpython-2e5642422f6234fd8d0c082142b27340e588f96e.tar.gz cpython-2e5642422f6234fd8d0c082142b27340e588f96e.tar.bz2 |
bpo-29695: Remove bad keyword parameters in int(), bool(), float(), list() and tuple(). (#518)
Diffstat (limited to 'Lib/test/test_tuple.py')
-rw-r--r-- | Lib/test/test_tuple.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_tuple.py b/Lib/test/test_tuple.py index d3663ac..84c064f 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() |