homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author meador.inge
Recipients georg.brandl, mark.dickinson, meador.inge, pitrou, r.david.murray, rhettinger, skrah
Date 2011年08月16日.02:44:04
SpamBayes Score 3.328246e-10
Marked as misclassified No
Message-id <CAK1Qoor-_tNv-f1QLyi4C-Ew6U64QQKZfvKuyGT3d90wPrfueg@mail.gmail.com>
In-reply-to <1313345036.11.0.789905045333.issue12740@psf.upfronthosting.co.za>
Content
On Sun, Aug 14, 2011 at 1:03 PM, Stefan Krah <report@bugs.python.org> wrote:
>
> Stefan Krah <stefan-usenet@bytereef.org> added the comment:
>
> I like random tests in the stdlib, otherwise the same thing gets tested
> over and over again. `make buildbottest` prints the seed, and you can do
> it for a single test as well:
>
> $ ./python -m test -r test_heapq
> Using random seed 5857004
> [1/1] test_heapq
> 1 test OK.
Ah, I see. Then you can reproduce a run like:
$ ./python -m test -r --randseed=5857004 test_heapq
Perhaps it might be useful to include the failing output in the
assertion message as well
(just in case the seed printing option is not used):
======================================================================
FAIL: test_Struct_nmemb (__main__.StructTest)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "Lib/test/test_struct.py", line 596, in test_Struct_nmemb
 self.assertEqual(s.nmemb, n, "for struct.Struct(%s)" % fmt)
AssertionError: 3658572 != 3658573 : for
struct.Struct(378576l?403320c266165pb992937H198961PiIL529090sfh887898d796871B)
History
Date User Action Args
2011年08月16日 02:44:06meador.ingesetrecipients: + meador.inge, georg.brandl, rhettinger, mark.dickinson, pitrou, r.david.murray, skrah
2011年08月16日 02:44:05meador.ingelinkissue12740 messages
2011年08月16日 02:44:04meador.ingecreate

AltStyle によって変換されたページ (->オリジナル) /