diff options
Diffstat (limited to 'Lib/test/test_int.py')
-rw-r--r-- | Lib/test/test_int.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_int.py b/Lib/test/test_int.py index 14bbd61..db96967 100644 --- a/Lib/test/test_int.py +++ b/Lib/test/test_int.py @@ -246,9 +246,11 @@ class IntTestCases(unittest.TestCase): def test_keyword_args(self): # Test invoking int() using keyword arguments. - self.assertEqual(int(x=1.2), 1) + with self.assertWarns(DeprecationWarning): + self.assertEqual(int(x=1.2), 1) self.assertEqual(int('100', base=2), 4) - self.assertEqual(int(x='100', base=2), 4) + with self.assertWarns(DeprecationWarning): + self.assertEqual(int(x='100', base=2), 4) self.assertRaises(TypeError, int, base=10) self.assertRaises(TypeError, int, base=0) |