Skip to content

Commit

Permalink
Note resets only legacy numpy random state
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Jul 24, 2023
1 parent 20e4551 commit 2cef1c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.rst
Expand Up @@ -50,8 +50,10 @@ All of these features are on by default but can be disabled with flags.
fixture
(`docs <https://faker.readthedocs.io/en/master/pytest-fixtures.html#seeding-configuration>`__).

* If `numpy <http://www.numpy.org/>`_ is installed, its global random state is
reset at the start of every test.
* If `numpy <http://www.numpy.org/>`_ is installed, its legacy global random state in |numpy.random|__ is reset at the start of every test.

.. |numpy.random| replace:: ``numpy.random``
__ https://numpy.org/doc/stable/reference/random/index.html

* If additional random generators are used, they can be registered under the
``pytest_randomly.random_seeder``
Expand Down

0 comments on commit 2cef1c4

Please sign in to comment.