Open jwodder opened 1 year ago
just to make sure -- we have two issues
correct?
@yarikoptic The first item is correct. As for the second, pytest does convert the warning into an exception, but that exception is then caught by this code. I think the more pertinent issue is that the test does not fail.
Ah, thank you for digesting it for me! We indeed just allow for embedder to fail and issue a warning in normal operations. We might disable that during testing to thus allow such exceptions to bubble up.
When the
test_b0dwi_for_fmap
test inheudiconv/tests/test_convert.py
is run, pydicom emits two UserWarnings with the message "The value length (22) exceeds the maximum length of 16 allowed for VR SH." (presumably because one or more files inheudiconv/tests/data/b0dwiForFmap/
are ill-formed), and then pytest'sfilterwarnings
setting causes these warnings to be converted into errors that are caught & logged here — and yet, the test does not fail.For the record, the output from running just this test as of commit 2c6d228 is: