Skip to content

Commit 5622fd0

Browse files
committed
Mark unsupported tests
1 parent df85907 commit 5622fd0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Lib/test/test_int.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import unittest
44
from test import support
5-
from test.test_grammar import (VALID_UNDERSCORE_LITERALS,
6-
INVALID_UNDERSCORE_LITERALS)
5+
# from test.test_grammar import (VALID_UNDERSCORE_LITERALS,
6+
# INVALID_UNDERSCORE_LITERALS)
77

88
L = [
99
('0', 0),
@@ -31,6 +31,7 @@ class IntSubclass(int):
3131

3232
class IntTestCases(unittest.TestCase):
3333

34+
@unittest.skip("TODO: RUSTPYTHON")
3435
def test_basic(self):
3536
self.assertEqual(int(314), 314)
3637
self.assertEqual(int(3.14), 3)
@@ -214,6 +215,7 @@ def test_basic(self):
214215
self.assertEqual(int('2br45qc', 35), 4294967297)
215216
self.assertEqual(int('1z141z5', 36), 4294967297)
216217

218+
@unittest.skip("TODO: RUSTPYTHON")
217219
def test_underscores(self):
218220
for lit in VALID_UNDERSCORE_LITERALS:
219221
if any(ch in lit for ch in '.eEjJ'):
@@ -278,6 +280,7 @@ def test_int_base_bad_types(self):
278280
with self.assertRaises(TypeError):
279281
int('0', 5.0)
280282

283+
@unittest.skip("TODO: RUSTPYTHON")
281284
def test_int_base_indexable(self):
282285
class MyIndexable(object):
283286
def __init__(self, value):
@@ -295,6 +298,7 @@ def __index__(self):
295298
self.assertEqual(int('101', base=MyIndexable(10)), 101)
296299
self.assertEqual(int('101', base=MyIndexable(36)), 1 + 36**2)
297300

301+
@unittest.skip("TODO: RUSTPYTHON")
298302
def test_non_numeric_input_types(self):
299303
# Test possible non-numeric types for the argument x, including
300304
# subclasses of the explicitly documented accepted types.
@@ -340,6 +344,7 @@ def test_int_memoryview(self):
340344
def test_string_float(self):
341345
self.assertRaises(ValueError, int, '1.2')
342346

347+
@unittest.skip("TODO: RUSTPYTHON")
343348
def test_intconversion(self):
344349
# Test __int__()
345350
class ClassicMissingMethods:
@@ -433,6 +438,8 @@ def __int__(self):
433438

434439
self.assertRaises(TypeError, int, BadInt())
435440

441+
# TODO: RUSTPYTHON
442+
@unittest.expectedFailure
436443
def test_int_returns_int_subclass(self):
437444
class BadInt:
438445
def __int__(self):
@@ -476,6 +483,8 @@ def __trunc__(self):
476483
self.assertEqual(n, 1)
477484
self.assertIs(type(n), IntSubclass)
478485

486+
# TODO: RUSTPYTHON
487+
@unittest.expectedFailure
479488
def test_error_message(self):
480489
def check(s, base=None):
481490
with self.assertRaises(ValueError,

0 commit comments

Comments
 (0)