We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34302e2 commit 86c26d8Copy full SHA for 86c26d8
tests/tests_fabric/utilities/test_seed.py
@@ -47,11 +47,9 @@ def test_correct_seed_with_environment_variable():
47
48
@mock.patch.dict(os.environ, {"PL_GLOBAL_SEED": "invalid"}, clear=True)
49
def test_invalid_seed():
50
- """Ensure that we still fix the seed even if an invalid seed is given."""
51
- with pytest.warns(UserWarning, match="Invalid seed found"):
+ """Ensure that a ValueError is raised if an invalid seed is given."""
+ with pytest.raises(ValueError, match="Invalid seed specified"):
52
seed = seed_everything()
53
- assert seed == 0
54
-
55
56
@mock.patch.dict(os.environ, {}, clear=True)
57
@pytest.mark.parametrize("seed", [10e9, -10e9])
0 commit comments