We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51d45c1 commit 4e11eadCopy full SHA for 4e11ead
niworkflows/interfaces/tests/test_bids.py
@@ -21,6 +21,7 @@
21
# https://www.nipreps.org/community/licensing/
22
#
23
"""Tests on BIDS compliance."""
24
+import sys
25
import os
26
from pathlib import Path
27
import json
@@ -348,6 +349,10 @@ def test_DerivativesDataSink_build_path(
348
349
assert not np.isnan(hdr["scl_slope"])
350
assert not np.isnan(hdr["scl_inter"])
351
for out, chksum in zip(output, checksum):
352
+ if chksum == "f7b8755c6ad0d8dcdb60676331b52a23ce288b61" and sys.version_info < (3, 8):
353
+ # Python 3.8 began preserving insertion order of attributes in XML
354
+ # Therefore we get a different checksum before/after
355
+ chksum = "a37ffb1188dd9a7b708de5b8daef46dac56ef8d4"
356
assert sha1(Path(out).read_bytes()).hexdigest() == chksum
357
358
0 commit comments