File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/diffpy/structure/tests Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff line change 1818
1919# helper functions
2020
21- from importlib import resources as importlib_resources
21+ from importlib import resources
2222
2323
2424def datafile (filename ):
25- return str (importlib_resources .files (__package__ ).joinpath ("testdata/" + filename ))
25+ return str (resources .files (__package__ ).joinpath ("testdata/" + filename ))
You can’t perform that action at this time.
0 commit comments