[Python-Dev] random guarantees (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Tue Sep 7 15:40:19 CEST 2010
- Previous message: [Python-Dev] [Python-checkins] r84564 - in python/branches/py3k/Lib: ntpath.py test/test_ntpath.py
- Next message: [Python-Dev] r84576 - in python/branches/py3k: Doc/library/random.rst Lib/random.py Lib/test/test_random.py Misc/NEWS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- ['0x1.7fafd5169cc8fp-1',
- '0x1.df66035cce42ap-2',
- '0x1.87773588f902cp-3',
- '0x1.0b32eb7b2fd14p-3']
- ['0x1.9ee265c177cdep-2',
- '0x1.bad51092e3c25p-1',
- '0x1.85ff833f71576p-1',
- '0x1.87efb37462927p-1']
It looks like the guarantees might be too ambitious.
Regards
Antoine.
- Previous message: [Python-Dev] [Python-checkins] r84564 - in python/branches/py3k/Lib: ntpath.py test/test_ntpath.py
- Next message: [Python-Dev] r84576 - in python/branches/py3k: Doc/library/random.rst Lib/random.py Lib/test/test_random.py Misc/NEWS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]