[Python-Dev] random guarantees (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Tue Sep 7 15:40:19 CEST 2010


On Tue, 7 Sep 2010 02:38:15 +0200 (CEST) raymond.hettinger <python-checkins at python.org> wrote:

Author: raymond.hettinger Date: Tue Sep 7 02:38:15 2010 New Revision: 84574

Log: Document which part of the random module module are guaranteed.

test_random fails here:

====================================================================== FAIL: test_guaranteed_stable (test.test_random.MersenneTwister_TestBasicOps)

Traceback (most recent call last): File "/home/antoine/py3k/py3k/Lib/test/test_random.py", line 235, in test_guaranteed_stable '0x1.85ff833f71576p-1', '0x1.87efb37462927p-1']) AssertionError: Lists differ: ['0x1.7fafd5169cc8fp-1', '0x1.... != ['0x1.9ee265c177cdep-2', '0x1....

First differing element 0: 0x1.7fafd5169cc8fp-1 0x1.9ee265c177cdep-2

It looks like the guarantees might be too ambitious.

Regards

Antoine.



More information about the Python-Dev mailing list