Skip to content

Commit 707f44b

Browse files
committed
Fix existing test to filter deprecation warning.
1 parent cd63826 commit 707f44b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/exporter_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ def test_mcstas_reduction_export_to_bytestream(reduced_data: NMXReducedData) ->
7070
]
7171

7272
with io.BytesIO() as bio:
73-
export_as_nexus(reduced_data, bio)
73+
with pytest.warns(
74+
DeprecationWarning, match='Please use ``export_as_nxlauetof`` instead.'
75+
):
76+
export_as_nexus(reduced_data, bio)
7477
with h5py.File(bio, 'r') as f:
7578
assert 'NMX_data' in f
7679
nmx_data: h5py.Group = f.require_group('NMX_data')

0 commit comments

Comments
 (0)