@@ -40,8 +40,6 @@ def test_saverestore(self):
4040 self .gen .setstate (state ) # should regenerate the same sequence
4141 self .assertEqual (randseq , self .randomlist (N ))
4242
43- # TODO: RUSTPYTHON
44- @unittest .expectedFailure
4543 def test_seedargs (self ):
4644 # Seed value with a negative hash.
4745 class MySeed (object ):
@@ -55,8 +53,6 @@ def __hash__(self):
5553 self .assertRaises (TypeError , self .gen .seed , 1 , 2 , 3 , 4 )
5654 self .assertRaises (TypeError , type (self .gen ), [])
5755
58- # TODO: RUSTPYTHON Success for SystemRandom, failure for MersenneTwister
59- @unittest .skip
6056 @unittest .mock .patch ('random._urandom' ) # os.urandom
6157 def test_seed_when_randomness_source_not_found (self , urandom_mock ):
6258 # Random.seed() uses time.time() when an operating system specific
@@ -887,7 +883,7 @@ def test_gammavariate_alpha_greater_one(self, random_mock):
887883 returned_value = random .gammavariate (1.1 , 2.3 )
888884 self .assertAlmostEqual (returned_value , 2.53 )
889885
890- # TODO: RUSTPYTHON
886+ # TODO: RUSTPYTHON assertAlmostEqual failure.
891887 @unittest .expectedFailure
892888 @unittest .mock .patch ('random.Random.random' )
893889 def test_gammavariate_alpha_equal_one (self , random_mock ):
@@ -900,7 +896,7 @@ def test_gammavariate_alpha_equal_one(self, random_mock):
900896 returned_value = random .gammavariate (1.0 , 3.14 )
901897 self .assertAlmostEqual (returned_value , 1.877208182372648 )
902898
903- # TODO: RUSTPYTHON
899+ # TODO: RUSTPYTHON assertAlmostEqual failure.
904900 @unittest .expectedFailure
905901 @unittest .mock .patch ('random.Random.random' )
906902 def test_gammavariate_alpha_equal_one_equals_expovariate (self , random_mock ):
0 commit comments