9
9
10
10
11
11
# 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
13
13
BASE = 2 ** SHIFT
14
14
MASK = BASE - 1
15
15
KARATSUBA_CUTOFF = 70 # from longobject.c
29
29
# add complements & negations
30
30
special += [~ x for x in special ] + [- x for x in special ]
31
31
32
- DBL_MAX = 1.7976931348623157E+308 # sys.float_info.max # TODO RustPython
32
+ DBL_MAX = 1.7976931348623157E+308 # sys.float_info.max # TODO: RUSTPYTHON
33
33
DBL_MAX_EXP = 1024 # sys.float_info.max_exp
34
34
DBL_MIN_EXP = - 1021 # sys.float_info.min_exp
35
35
DBL_MANT_DIG = 53 # sys.float_info.mant_dig
@@ -313,7 +313,7 @@ def check_format_1(self, x):
313
313
with self .subTest (got = got ):
314
314
self .assertEqual (int (got , 0 ), x )
315
315
316
- @unittest .skip #Todo RustPython
316
+ @unittest .skip # TODO: RUSTPYTHON
317
317
def test_format (self ):
318
318
for x in special :
319
319
self .check_format_1 (x )
@@ -378,12 +378,12 @@ def test_long(self):
378
378
# See bpo-34087
379
379
self .assertRaises (ValueError , int , '\u3053 \u3093 \u306b \u3061 \u306f ' )
380
380
381
- @unittest .expectedFailure # TODO RustPython
381
+ @unittest .expectedFailure # TODO: RUSTPYTHON
382
382
def test_long_a (self ):
383
383
self .assertRaises (ValueError , int , '-012395' , 0 )
384
384
385
385
386
- @unittest .expectedFailure # TODO RustPython
386
+ @unittest .expectedFailure # TODO: RUSTPYTHON
387
387
def test_conversion (self ):
388
388
389
389
class JustLong :
@@ -418,7 +418,7 @@ def check_float_conversion(self, n):
418
418
self .assertEqual (actual , expected , msg )
419
419
420
420
#@support.requires_IEEE_754
421
- @unittest .skip # TODO RustPython
421
+ @unittest .skip # TODO: RUSTPYTHON
422
422
def test_float_conversion (self ):
423
423
424
424
exact_values = [0 , 1 , 2 ,
@@ -519,7 +519,7 @@ def test_float_overflow(self):
519
519
self .assertNotEqual (float (shuge ), int (shuge ),
520
520
"float(shuge) should not equal int(shuge)" )
521
521
522
- @unittest .expectedFailure # TODO RustPython
522
+ @unittest .expectedFailure # TODO: RUSTPYTHON
523
523
def test_logs (self ):
524
524
LOG10E = math .log10 (math .e )
525
525
@@ -933,7 +933,7 @@ def test_negative_shift_count(self):
933
933
with self .assertRaises (ValueError ):
934
934
42 >> - (1 << 1000 )
935
935
936
- @unittest .expectedFailure # TODO RustPython
936
+ @unittest .expectedFailure # TODO: RUSTPYTHON
937
937
def test_lshift_of_zero (self ):
938
938
self .assertEqual (0 << 0 , 0 )
939
939
self .assertEqual (0 << 10 , 0 )
@@ -956,7 +956,7 @@ def test_huge_lshift_of_zero(self):
956
956
def test_huge_lshift (self , size ):
957
957
self .assertEqual (1 << (sys .maxsize + 1000 ), 1 << 1000 << sys .maxsize )
958
958
959
- @unittest .expectedFailure # TODO RustPytohn
959
+ @unittest .expectedFailure # TODO: RUSTPYTHON
960
960
def test_huge_rshift (self ):
961
961
self .assertEqual (42 >> (1 << 1000 ), 0 )
962
962
self .assertEqual ((- 42 ) >> (1 << 1000 ), - 1 )
@@ -1115,7 +1115,7 @@ def test_round(self):
1115
1115
for e in bad_exponents :
1116
1116
self .assertRaises (TypeError , round , 3 , e )
1117
1117
1118
- @unittest .expectedFailure # TODO RustPython
1118
+ @unittest .expectedFailure # TODO: RUSTPYTHON
1119
1119
def test_to_bytes (self ):
1120
1120
def check (tests , byteorder , signed = False ):
1121
1121
for test , expected in tests .items ():
0 commit comments