Skip to content

Commit 98c9933

Browse files
committed
remove import as
1 parent bab485e commit 98c9933

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/diffpy/structure/tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ def testsuite(pattern=""):
3535
The TestSuite object containing the matching tests.
3636
"""
3737
import re
38-
from importlib import resources as importlib_resources
38+
from importlib import resources
3939
from itertools import chain
4040
from os.path import dirname
4141

4242
loader = unittest.defaultTestLoader
43-
thisdir = str(importlib_resources.files(__name__))
43+
thisdir = str(resources.files(__name__))
4444
depth = __name__.count(".") + 1
4545
topdir = thisdir
4646
for i in range(depth):

src/diffpy/structure/tests/testutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
# helper functions
2020

21-
from importlib import resources as importlib_resources
21+
from importlib import resources
2222

2323

2424
def datafile(filename):
25-
return str(importlib_resources.files(__package__).joinpath("testdata/" + filename))
25+
return str(resources.files(__package__).joinpath("testdata/" + filename))

0 commit comments

Comments
 (0)