def test_out_of_bounds_seed(seed):
    """Ensure that we still fix the seed even if an out-of-bounds seed is given."""
    with pytest.warns(UserWarning, match="is not in bounds"):
        actual = seed_everything(seed)
    assert actual == 0
Ensure that we still fix the seed even if an out-of-bounds seed is given.
tests/tests_fabric/utilities/test_seed.py