summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_list.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-06 15:01:06 (GMT)
committerGitHub <noreply@github.com>2017-03-06 15:01:06 (GMT)
commit2e5642422f6234fd8d0c082142b27340e588f96e (patch)
tree8279099d6fc0b034aaeb0be40a1d30d9246afc81 /Lib/test/test_list.py
parentb76ad5121e2cfa89d6476d700cbcb65b7ffc39ac (diff)
downloadcpython-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_list.py')
-rw-r--r--Lib/test/test_list.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_list.py b/Lib/test/test_list.py
index 48c3691..def4bad 100644
--- a/Lib/test/test_list.py
+++ b/Lib/test/test_list.py
@@ -42,9 +42,8 @@ class ListTest(list_tests.CommonTest):
self.assertEqual(x, [])
def test_keyword_args(self):
- with self.assertWarns(DeprecationWarning):
- self.assertEqual(list(sequence=(x for x in range(10) if x % 2)),
- [1, 3, 5, 7, 9])
+ with self.assertRaisesRegex(TypeError, 'keyword argument'):
+ list(sequence=[])
def test_truth(self):
super().test_truth()