Skip to content

Commit 363b403

Browse files
author
Mathieu Scheltienne
committed
rm unused imports
1 parent 65106d9 commit 363b403

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

nibabel/tests/test_arrayproxy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import contextlib
1313
import gzip
1414
import pickle
15-
import warnings
1615
from io import BytesIO
1716
from unittest import mock
1817

nibabel/tests/test_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import pytest
55

66
try:
7-
from importlib.resources import as_file, files
7+
from importlib.resources import files
88
except ImportError:
9-
from importlib_resources import as_file, files
9+
from importlib_resources import files
1010

1111
import nibabel as nib
1212

nibabel/tests/test_pkg_info.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"""
33

44
import pytest
5-
from packaging.version import Version
65

76
import nibabel as nib
87
from nibabel.pkg_info import cmp_pkg_version

nibabel/tests/test_spatialimages.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"""Testing spatialimages
1010
"""
1111

12-
import warnings
1312
from io import BytesIO
1413

1514
import numpy as np
@@ -21,10 +20,8 @@
2120
from ..spatialimages import HeaderDataError, SpatialHeader, SpatialImage
2221
from ..testing import (
2322
bytesio_round_trip,
24-
clear_and_catch_warnings,
2523
expires,
2624
memmap_after_ufunc,
27-
suppress_warnings,
2825
)
2926
from ..tmpdirs import InTemporaryDirectory
3027

0 commit comments

Comments
 (0)