File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
importlib_resources/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
import io
4
4
import sys
5
5
import types
6
- from pathlib import Path , PurePath
6
+ import pathlib
7
7
8
8
from . import data01
9
9
from . import zipdata01
@@ -94,7 +94,7 @@ def test_string_path(self):
94
94
95
95
def test_pathlib_path (self ):
96
96
# Passing in a pathlib.PurePath object for the path should succeed.
97
- path = PurePath ('utf-8.file' )
97
+ path = pathlib . PurePath ('utf-8.file' )
98
98
self .execute (data01 , path )
99
99
100
100
def test_importing_module_as_side_effect (self ):
@@ -144,7 +144,7 @@ class ZipSetupBase:
144
144
145
145
@classmethod
146
146
def setUpClass (cls ):
147
- data_path = Path (cls .ZIP_MODULE .__file__ )
147
+ data_path = pathlib . Path (cls .ZIP_MODULE .__file__ )
148
148
data_dir = data_path .parent
149
149
cls ._zip_path = str (data_dir / 'ziptestdata.zip' )
150
150
sys .path .append (cls ._zip_path )
You can’t perform that action at this time.
0 commit comments