Skip to content

Commit fb67f92

Browse files
committed
limit warning suppression to amor tests
1 parent fb829af commit fb67f92

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ filterwarnings = [
7575
'ignore:\n.*Sentinel is not a public part of the traitlets API.*:DeprecationWarning',
7676
"ignore:.*metadata to be logged in the data array, it is necessary to install the orsopy package.:UserWarning",
7777
"ignore:.*A transformation needs a vector attribute. Falling back to returning underlying value.:UserWarning",
78-
"ignore:Invalid transformation.*'vector':UserWarning",
7978
]
8079

8180
[tool.ruff]

tests/amor/pipeline_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
)
2929
from ess.reflectometry.workflow import with_filenames
3030

31+
# The files used in the AMOR reduction workflow have some scippnexus warnings
32+
pytestmark = pytest.mark.filterwarnings(
33+
"ignore:.*Invalid transformation, .*missing attribute 'vector':UserWarning",
34+
)
35+
3136

3237
@pytest.fixture
3338
def amor_pipeline() -> sciline.Pipeline:

0 commit comments

Comments
 (0)