File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 16
16
RESOURCE_PATH = Path (__file__ ).parent / DATA_DIR / "data"
17
17
18
18
19
- def find (name : str , normpath : bool = True ) -> str :
20
- path = os .path .join (os .path .dirname (__file__ ), DATA_DIR , name )
21
- if normpath :
22
- return os .path .normpath (path )
23
- return path
19
+ def find (name : str ) -> str :
20
+ return os .path .normpath (os .path .join (os .path .dirname (__file__ ), DATA_DIR , name ))
24
21
25
22
26
23
def build_file (path : str , modname : str | None = None ) -> Module :
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ def test_std_lib(self) -> None:
269
269
)
270
270
271
271
def test_std_lib_found_before_same_named_package_on_path (self ) -> None :
272
- sys .path .insert (0 , resources .find ("data" , normpath = False ))
272
+ sys .path .insert (0 , resources .find ("data" ))
273
273
self .addCleanup (sys .path .pop , 0 )
274
274
275
275
file = modutils .file_from_modpath (["copy" ])
You can’t perform that action at this time.
0 commit comments