File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -374,3 +374,13 @@ at the end of the test run. Skipped tests are marked as ``'S'`` in
374
374
the test results (or ``'SKIPPED' `` for ``verbose > 1 ``), and known
375
375
failing tests are marked as ``'K' `` (or ``'KNOWN' `` if ``verbose >
376
376
1 ``).
377
+
378
+ Tests on random data
379
+ --------------------
380
+
381
+ Tests on random data are good, but since test failures are meant to expose
382
+ new bugs or regressions, a test that passes most of the time but fails
383
+ occasionally with no code changes is not helpful. Make the random data
384
+ deterministic by setting the random number seed before generating it. Use
385
+ either Python's ``random.seed(some_number) `` or Numpy's
386
+ ``numpy.random.seed(some_number) ``, depending on the source of random numbers.
You can’t perform that action at this time.
0 commit comments