Skip to content

Commit 8e8efe0

Browse files
committed
reform every TODO: RUSTPYTHON to same format
1 parent a21c6fb commit 8e8efe0

File tree

8 files changed

+91
-91
lines changed

8 files changed

+91
-91
lines changed

Lib/re.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class RegexFlag(enum.IntFlag):
158158
TEMPLATE = sre_compile.SRE_FLAG_TEMPLATE # disable backtracking
159159
T = TEMPLATE
160160
DEBUG = sre_compile.SRE_FLAG_DEBUG # dump pattern after compilation
161-
#TODO: globals().update(RegexFlag.__members__) once mappingproxy has __iter__
161+
# TODO: globals().update(RegexFlag.__members__) once mappingproxy has __iter__
162162
for name in ("ASCII","IGNORECASE","LOCALE","UNICODE","MULTILINE","DOTALL",
163163
"VERBOSE","A","I","L","U","M","S","X","TEMPLATE","T","DEBUG"):
164164
globals()[name] = getattr(RegexFlag, name)

Lib/test/libregrtest/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def _main(self, tests, kwargs):
614614

615615
# If we're on windows and this is the parent runner (not a worker),
616616
# track the load average.
617-
# TODO: RustPython
617+
# TODO: RUSTPYTHON
618618
# if sys.platform == 'win32' and (self.ns.worker_args is None):
619619
# from test.libregrtest.win_utils import WindowsLoadTracker
620620

Lib/test/test_decorators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ def outer(cls):
308308
return 'eggs'
309309

310310
self.assertEqual(Class.inner(), 'spam')
311-
#self.assertEqual(Class.outer(), 'eggs') # TODO RustPython
311+
#self.assertEqual(Class.outer(), 'eggs') # TODO: RUSTPYTHON
312312
self.assertEqual(Class().inner(), 'spam')
313-
#self.assertEqual(Class().outer(), 'eggs') # TODO RustPython
313+
#self.assertEqual(Class().outer(), 'eggs') # TODO: RUSTPYTHON
314314

315315

316316
class TestClassDecorators(unittest.TestCase):

Lib/test/test_long.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
# SHIFT should match the value in longintrepr.h for best testing.
12-
SHIFT = 32 #sys.int_info.bits_per_digit # TODO RustPython int_info not supported
12+
SHIFT = 32 #sys.int_info.bits_per_digit # TODO: RUSTPYTHON int_info not supported
1313
BASE = 2 ** SHIFT
1414
MASK = BASE - 1
1515
KARATSUBA_CUTOFF = 70 # from longobject.c
@@ -29,7 +29,7 @@
2929
# add complements & negations
3030
special += [~x for x in special] + [-x for x in special]
3131

32-
DBL_MAX = 1.7976931348623157E+308 # sys.float_info.max # TODO RustPython
32+
DBL_MAX = 1.7976931348623157E+308 # sys.float_info.max # TODO: RUSTPYTHON
3333
DBL_MAX_EXP = 1024 # sys.float_info.max_exp
3434
DBL_MIN_EXP = -1021 # sys.float_info.min_exp
3535
DBL_MANT_DIG = 53 # sys.float_info.mant_dig
@@ -313,7 +313,7 @@ def check_format_1(self, x):
313313
with self.subTest(got=got):
314314
self.assertEqual(int(got, 0), x)
315315

316-
@unittest.skip #Todo RustPython
316+
@unittest.skip # TODO: RUSTPYTHON
317317
def test_format(self):
318318
for x in special:
319319
self.check_format_1(x)
@@ -378,12 +378,12 @@ def test_long(self):
378378
# See bpo-34087
379379
self.assertRaises(ValueError, int, '\u3053\u3093\u306b\u3061\u306f')
380380

381-
@unittest.expectedFailure # TODO RustPython
381+
@unittest.expectedFailure # TODO: RUSTPYTHON
382382
def test_long_a(self):
383383
self.assertRaises(ValueError, int, '-012395', 0)
384384

385385

386-
@unittest.expectedFailure # TODO RustPython
386+
@unittest.expectedFailure # TODO: RUSTPYTHON
387387
def test_conversion(self):
388388

389389
class JustLong:
@@ -418,7 +418,7 @@ def check_float_conversion(self, n):
418418
self.assertEqual(actual, expected, msg)
419419

420420
#@support.requires_IEEE_754
421-
@unittest.skip # TODO RustPython
421+
@unittest.skip # TODO: RUSTPYTHON
422422
def test_float_conversion(self):
423423

424424
exact_values = [0, 1, 2,
@@ -519,7 +519,7 @@ def test_float_overflow(self):
519519
self.assertNotEqual(float(shuge), int(shuge),
520520
"float(shuge) should not equal int(shuge)")
521521

522-
@unittest.expectedFailure # TODO RustPython
522+
@unittest.expectedFailure # TODO: RUSTPYTHON
523523
def test_logs(self):
524524
LOG10E = math.log10(math.e)
525525

@@ -933,7 +933,7 @@ def test_negative_shift_count(self):
933933
with self.assertRaises(ValueError):
934934
42 >> -(1 << 1000)
935935

936-
@unittest.expectedFailure # TODO RustPython
936+
@unittest.expectedFailure # TODO: RUSTPYTHON
937937
def test_lshift_of_zero(self):
938938
self.assertEqual(0 << 0, 0)
939939
self.assertEqual(0 << 10, 0)
@@ -956,7 +956,7 @@ def test_huge_lshift_of_zero(self):
956956
def test_huge_lshift(self, size):
957957
self.assertEqual(1 << (sys.maxsize + 1000), 1 << 1000 << sys.maxsize)
958958

959-
@unittest.expectedFailure # TODO RustPytohn
959+
@unittest.expectedFailure # TODO: RUSTPYTHON
960960
def test_huge_rshift(self):
961961
self.assertEqual(42 >> (1 << 1000), 0)
962962
self.assertEqual((-42) >> (1 << 1000), -1)
@@ -1115,7 +1115,7 @@ def test_round(self):
11151115
for e in bad_exponents:
11161116
self.assertRaises(TypeError, round, 3, e)
11171117

1118-
@unittest.expectedFailure # TODO RustPython
1118+
@unittest.expectedFailure # TODO: RUSTPYTHON
11191119
def test_to_bytes(self):
11201120
def check(tests, byteorder, signed=False):
11211121
for test, expected in tests.items():

0 commit comments

Comments
 (0)