Skip to content

Commit 151e08a

Browse files
srittaumingyu.park
authored andcommitted
Move imports into version_info branch (python#13684)
1 parent c44339c commit 151e08a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/@tests/test_cases/check_importlib_resources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import annotations
22

3-
import importlib.resources
4-
import pathlib
53
import sys
64

75

@@ -11,6 +9,8 @@ def __fspath__(self) -> str:
119

1210

1311
if sys.version_info >= (3, 13):
12+
import importlib.resources
13+
import pathlib
1414

1515
def f(pth: pathlib.Path | str | _CustomPathLike) -> None:
1616
importlib.resources.open_binary("pkg", pth)

0 commit comments

Comments
 (0)