diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-05-21 17:00:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 17:00:40 (GMT) |
commit | 875b3d84b3072b2d3c352ad9f0ff52c441fbd12e (patch) | |
tree | 5fc461ab2855ee1f5f74992e43e7f681712b4be0 /Lib/test/test_importlib | |
parent | b51081c1a8cf01b92ba0692173e1b9274a57f455 (diff) | |
download | cpython-875b3d84b3072b2d3c352ad9f0ff52c441fbd12e.zip cpython-875b3d84b3072b2d3c352ad9f0ff52c441fbd12e.tar.gz cpython-875b3d84b3072b2d3c352ad9f0ff52c441fbd12e.tar.bz2 |
bpo-43643: Sync with python/importlib_resources@c17a610aad. (GH-26284)
* bpo-43643: Sync with python/importlib_resources@c17a610aad.
* Sync with python/importlib_resources@89fd5e961a.
Diffstat (limited to 'Lib/test/test_importlib')
-rw-r--r-- | Lib/test/test_importlib/test_reader.py | 6 |
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) |