summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-21 17:52:24 (GMT)
committerGitHub <noreply@github.com>2021-05-21 17:52:24 (GMT)
commitfdb65e399ea4e2d13dd41d65662ba25cafe15f1d (patch)
tree521845eb1b2e57f51770d8e64fdf860d742d6798 /Lib/test
parent1886b8496bdf790628bffd4354a0189e8e8e4ff0 (diff)
downloadcpython-fdb65e399ea4e2d13dd41d65662ba25cafe15f1d.zip
cpython-fdb65e399ea4e2d13dd41d65662ba25cafe15f1d.tar.gz
cpython-fdb65e399ea4e2d13dd41d65662ba25cafe15f1d.tar.bz2
[3.10] bpo-43643: Sync with python/importlib_resources@c17a610aad. (GH-26284) (GH-26286)
* [bpo-43643](): Sync with python/importlib_resources@c17a610aad. * Sync with python/importlib_resources@89fd5e961a. (cherry picked from commit 875b3d84b3072b2d3c352ad9f0ff52c441fbd12e) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Automerge-Triggered-By: GH:jaraco
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_importlib/test_reader.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/test_reader.py b/Lib/test/test_importlib/test_reader.py
index b0bf49b..ed1f6be 100644
--- a/Lib/test/test_importlib/test_reader.py
+++ b/Lib/test/test_importlib/test_reader.py
@@ -82,6 +82,12 @@ class MultiplexedPathTest(unittest.TestCase):
"MultiplexedPath('{}')".format(self.folder),
)
+ def test_name(self):
+ self.assertEqual(
+ MultiplexedPath(self.folder).name,
+ os.path.basename(self.folder),
+ )
+
class NamespaceReaderTest(unittest.TestCase):
site_dir = str(pathlib.Path(__file__).parent)