We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0527067 commit 2218d6fCopy full SHA for 2218d6f
tests/test_future/test_int.py
@@ -265,12 +265,17 @@ def test_small_ints(self):
265
def test_no_args(self):
266
self.assertEqual(int(), 0)
267
268
- def test_keyword_args(self):
+ @unittest.skipIf(sys.version_info >= (3, 7),
269
+ "The first parameter must be positional with Python >= 3.7"
270
+ )
271
+ def test_x_keyword_arg(self):
272
# Test invoking int() using keyword arguments.
273
self.assertEqual(int(x=1.2), 1)
- self.assertEqual(int('100', base=2), 4)
274
self.assertEqual(int(x='100', base=2), 4)
275
276
+ def text_base_keyword_arg(self):
277
+ self.assertEqual(int('100', base=2), 4)
278
+
279
def test_newint_plus_float(self):
280
minutes = int(100)
281
second = 0.0
0 commit comments