Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion unittests/test_deferrable.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# SPDX-License-Identifier: BSD-3-Clause

import pytest
import reframe.core.warnings as warnings
import reframe.utility.sanity as sn
from reframe.core.warnings import ReframeDeprecationWarning

Expand All @@ -22,7 +23,8 @@ def test_evaluate():
assert 3 == sn.evaluate(3)


def test_depr_warn():
def test_depr_warn(monkeypatch):
monkeypatch.setattr(warnings, '_RAISE_DEPRECATION_ALWAYS', True)
with pytest.warns(ReframeDeprecationWarning):
@sn.sanity_function
def foo():
Expand Down