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 b313cd9 commit 7bd9279Copy full SHA for 7bd9279
tests/tests_fabric/utilities/test_seed.py
@@ -1,5 +1,6 @@
1
import os
2
import random
3
+import warnings
4
from unittest import mock
5
from unittest.mock import Mock
6
@@ -30,9 +31,9 @@ def test_seed_stays_same_with_multiple_seed_everything_calls():
30
31
seed_everything()
32
initial_seed = os.environ.get("PL_GLOBAL_SEED")
33
- with pytest.warns(None) as record:
34
+ with warnings.catch_warnings():
35
+ warnings.simplefilter("error")
36
- assert not record # does not warn
37
seed = os.environ.get("PL_GLOBAL_SEED")
38
39
assert initial_seed == seed
0 commit comments