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 7ae88a2 commit c5be801Copy full SHA for c5be801
unittests/test_deferrable.py
@@ -4,6 +4,7 @@
4
# SPDX-License-Identifier: BSD-3-Clause
5
6
import pytest
7
+import reframe.core.warnings as warnings
8
import reframe.utility.sanity as sn
9
from reframe.core.warnings import ReframeDeprecationWarning
10
@@ -22,7 +23,8 @@ def test_evaluate():
22
23
assert 3 == sn.evaluate(3)
24
25
-def test_depr_warn():
26
+def test_depr_warn(monkeypatch):
27
+ monkeypatch.setattr(warnings, '_RAISE_DEPRECATION_ALWAYS', True)
28
with pytest.warns(ReframeDeprecationWarning):
29
@sn.sanity_function
30
def foo():
0 commit comments