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_bool.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_bool.py')
| -rw-r--r-- | Lib/test/test_bool.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_bool.py b/Lib/test/test_bool.py index 1e6ec19837..c5a1f1f2c2 100644 --- a/Lib/test/test_bool.py +++ b/Lib/test/test_bool.py @@ -171,8 +171,8 @@ class BoolTest(unittest.TestCase): self.assertIs(bool(), False) def test_keyword_args(self): - with self.assertWarns(DeprecationWarning): - self.assertIs(bool(x=10), True) + with self.assertRaisesRegex(TypeError, 'keyword argument'): + bool(x=10) def test_format(self): self.assertEqual("%d" % False, "0") |
