diff options
-rw-r--r-- | doc/TESTS.rst.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/TESTS.rst.txt b/doc/TESTS.rst.txt index 876f37bc5..690baca3d 100644 --- a/doc/TESTS.rst.txt +++ b/doc/TESTS.rst.txt @@ -378,9 +378,9 @@ failing tests are marked as ``'K'`` (or ``'KNOWN'`` if ``verbose > Tests on random data -------------------- -Tests on random data are good, but since test failures are meant to -expose new bugs or regressions, a test that passes most of the time -but fails occasionally with no code changes is not helpful. -Make the random data deterministic by setting the random number seed -before generating it. Either Python's ``random.seed()`` or Numpy's -``numpy.random.seed()``, depending on the source of random numbers. +Tests on random data are good, but since test failures are meant to expose +new bugs or regressions, a test that passes most of the time but fails +occasionally with no code changes is not helpful. Make the random data +deterministic by setting the random number seed before generating it. Use +either Python's ``random.seed(some_number)`` or Numpy's +``numpy.random.seed(some_number)``, depending on the source of random numbers. |