def test_invalid_seed():
    """Ensure that we still fix the seed even if an invalid seed is given."""
    with pytest.warns(UserWarning, match="Invalid seed found"):
        seed = seed_everything()
    assert seed == 0
Ensure that we still fix the seed even if an invalid seed is given.
tests/tests_fabric/utilities/test_seed.py