gh-95218: Move tests for importlib.resources into test_importlib.resources. (#95219)

* gh-95218: Move tests for importlib.resources into test_importlib.resources.

* Also update makefile

* Include test_importlib/resources in code ownership rule.
This commit is contained in:
Jason R. Coombs 2022-07-24 20:53:10 -04:00 committed by GitHub
parent 9007dec606
commit 3e718cf880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 25 additions and 24 deletions

4
.gitattributes vendored
View File

@ -28,8 +28,8 @@ Lib/test/cjkencodings/* noeol
Lib/test/coding20731.py noeol
Lib/test/decimaltestdata/*.decTest noeol
Lib/test/test_email/data/*.txt noeol
Lib/test/test_importlib/data01/* noeol
Lib/test/test_importlib/namespacedata01/* noeol
Lib/test/test_importlib/resources/data01/* noeol
Lib/test/test_importlib/resources/namespacedata01/* noeol
Lib/test/xmltestdata/* noeol
# CRLF files

2
.github/CODEOWNERS vendored
View File

@ -61,7 +61,7 @@ Python/pythonrun.c @iritkatriel
# bytecode.
**/*import*.c @brettcannon @encukou @ericsnowcurrently @ncoghlan @warsaw
**/*import*.py @brettcannon @encukou @ericsnowcurrently @ncoghlan @warsaw
**/importlib/resources/* @jaraco @warsaw @brettcannon
**/*importlib/resources/* @jaraco @warsaw @brettcannon
**/importlib/metadata/* @jaraco @warsaw
# Dates and times

View File

@ -8,7 +8,7 @@ from importlib.resources._adapters import (
wrap_spec,
)
from .resources import util
from . import util
class CompatibilityFilesTests(unittest.TestCase):

View File

@ -2,7 +2,7 @@ import unittest
from importlib import resources
from . import data01
from .resources import util
from . import util
class ContentsTests:

View File

@ -4,7 +4,7 @@ import unittest
from importlib import resources
from importlib.abc import Traversable
from . import data01
from .resources import util
from . import util
class FilesTests:

View File

@ -2,7 +2,7 @@ import unittest
from importlib import resources
from . import data01
from .resources import util
from . import util
class CommonBinaryTests(util.CommonTests, unittest.TestCase):

View File

@ -3,7 +3,7 @@ import unittest
from importlib import resources
from . import data01
from .resources import util
from . import util
class CommonTests(util.CommonTests, unittest.TestCase):

View File

@ -2,7 +2,7 @@ import unittest
from importlib import import_module, resources
from . import data01
from .resources import util
from . import util
class CommonBinaryTests(util.CommonTests, unittest.TestCase):

View File

@ -5,7 +5,7 @@ import pathlib
from . import data01
from . import zipdata01, zipdata02
from .resources import util
from . import util
from importlib import resources, import_module
from test.support import import_helper
from test.support.os_helper import unlink

View File

@ -5,8 +5,8 @@ import sys
import types
from pathlib import Path, PurePath
from .. import data01
from .. import zipdata01
from . import data01
from . import zipdata01
from importlib.abc import ResourceReader
from test.support import import_helper

View File

@ -1926,15 +1926,6 @@ TESTSUBDIRS= distutils/tests \
test/test_importlib \
test/test_importlib/builtin \
test/test_importlib/data \
test/test_importlib/data01 \
test/test_importlib/data01/subdirectory \
test/test_importlib/data02 \
test/test_importlib/data02/one \
test/test_importlib/data02/two \
test/test_importlib/data03 \
test/test_importlib/data03/namespace \
test/test_importlib/data03/namespace/portion1 \
test/test_importlib/data03/namespace/portion2 \
test/test_importlib/extension \
test/test_importlib/frozen \
test/test_importlib/import_ \
@ -1958,12 +1949,21 @@ TESTSUBDIRS= distutils/tests \
test/test_importlib/namespace_pkgs/project3 \
test/test_importlib/namespace_pkgs/project3/parent \
test/test_importlib/namespace_pkgs/project3/parent/child \
test/test_importlib/namespacedata01 \
test/test_importlib/partial \
test/test_importlib/resources \
test/test_importlib/resources/data01 \
test/test_importlib/resources/data01/subdirectory \
test/test_importlib/resources/data02 \
test/test_importlib/resources/data02/one \
test/test_importlib/resources/data02/two \
test/test_importlib/resources/data03 \
test/test_importlib/resources/data03/namespace \
test/test_importlib/resources/data03/namespace/portion1 \
test/test_importlib/resources/data03/namespace/portion2 \
test/test_importlib/resources/namespacedata01 \
test/test_importlib/resources/zipdata01 \
test/test_importlib/resources/zipdata02 \
test/test_importlib/source \
test/test_importlib/zipdata01 \
test/test_importlib/zipdata02 \
test/test_json \
test/test_lib2to3 \
test/test_lib2to3/data \

View File

@ -0,0 +1 @@
Move tests for importlib.resources into test_importlib.resources.