Skip to content

Commit 887ad22

Browse files
committed
Use more namespaces.
1 parent 4e4aef2 commit 887ad22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

importlib_resources/tests/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import io
44
import sys
55
import types
6-
from pathlib import Path, PurePath
6+
import pathlib
77

88
from . import data01
99
from . import zipdata01
@@ -94,7 +94,7 @@ def test_string_path(self):
9494

9595
def test_pathlib_path(self):
9696
# Passing in a pathlib.PurePath object for the path should succeed.
97-
path = PurePath('utf-8.file')
97+
path = pathlib.PurePath('utf-8.file')
9898
self.execute(data01, path)
9999

100100
def test_importing_module_as_side_effect(self):
@@ -144,7 +144,7 @@ class ZipSetupBase:
144144

145145
@classmethod
146146
def setUpClass(cls):
147-
data_path = Path(cls.ZIP_MODULE.__file__)
147+
data_path = pathlib.Path(cls.ZIP_MODULE.__file__)
148148
data_dir = data_path.parent
149149
cls._zip_path = str(data_dir / 'ziptestdata.zip')
150150
sys.path.append(cls._zip_path)

0 commit comments

Comments
 (0)