diff options
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 1e6ec19..c5a1f1f 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") |