Skip to content

Commit 5c49c57

Browse files
committed
TEST: Mark file:/// URL test as xfail
1 parent afd6562 commit 5c49c57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nibabel/tests/test_image_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import io
2727
import pathlib
28+
import sys
2829
import warnings
2930
from functools import partial
3031
from itertools import product
@@ -579,6 +580,10 @@ def validate_from_url(self, imaker, params):
579580
del img
580581
del rt_img
581582

583+
@pytest.mark.xfail(
584+
sys.version_info >= (3, 12),
585+
reason='Response type for file: urls is not a stream in Python 3.12',
586+
)
582587
def validate_from_file_url(self, imaker, params):
583588
tmp_path = self.tmp_path
584589

0 commit comments

Comments
 (0)