Skip to content

Commit ce8753a

Browse files
committed
gh-95218: Move tests for importlib.resources into test_importlib.resources.
1 parent eb9c8a8 commit ce8753a

33 files changed

+10
-9
lines changed

Lib/test/test_importlib/test_compatibilty_files.py renamed to Lib/test/test_importlib/resources/test_compatibilty_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
wrap_spec,
99
)
1010

11-
from .resources import util
11+
from . import util
1212

1313

1414
class CompatibilityFilesTests(unittest.TestCase):

Lib/test/test_importlib/test_contents.py renamed to Lib/test/test_importlib/resources/test_contents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from importlib import resources
33

44
from . import data01
5-
from .resources import util
5+
from . import util
66

77

88
class ContentsTests:

Lib/test/test_importlib/test_files.py renamed to Lib/test/test_importlib/resources/test_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from importlib import resources
55
from importlib.abc import Traversable
66
from . import data01
7-
from .resources import util
7+
from . import util
88

99

1010
class FilesTests:

Lib/test/test_importlib/test_open.py renamed to Lib/test/test_importlib/resources/test_open.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from importlib import resources
44
from . import data01
5-
from .resources import util
5+
from . import util
66

77

88
class CommonBinaryTests(util.CommonTests, unittest.TestCase):

Lib/test/test_importlib/test_path.py renamed to Lib/test/test_importlib/resources/test_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from importlib import resources
55
from . import data01
6-
from .resources import util
6+
from . import util
77

88

99
class CommonTests(util.CommonTests, unittest.TestCase):

Lib/test/test_importlib/test_read.py renamed to Lib/test/test_importlib/resources/test_read.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from importlib import import_module, resources
44
from . import data01
5-
from .resources import util
5+
from . import util
66

77

88
class CommonBinaryTests(util.CommonTests, unittest.TestCase):

Lib/test/test_importlib/test_resource.py renamed to Lib/test/test_importlib/resources/test_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from . import data01
77
from . import zipdata01, zipdata02
8-
from .resources import util
8+
from . import util
99
from importlib import resources, import_module
1010
from test.support import import_helper
1111
from test.support.os_helper import unlink

Lib/test/test_importlib/resources/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import types
66
from pathlib import Path, PurePath
77

8-
from .. import data01
9-
from .. import zipdata01
8+
from . import data01
9+
from . import zipdata01
1010
from importlib.abc import ResourceReader
1111
from test.support import import_helper
1212

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Move tests for importlib.resources into test_importlib.resources.

0 commit comments

Comments
 (0)