mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
bpo-43780: Sync with importlib_metadata 3.10 (GH-25297)
* bpo-43780: Sync with importlib_metadata 3.10. * Add blurb * Apply changes from importlib_metadata 3.10.1.
This commit is contained in:
parent
ce9a064349
commit
c6ca368867
6 changed files with 275 additions and 75 deletions
|
@ -2,6 +2,7 @@ import re
|
|||
import textwrap
|
||||
import unittest
|
||||
import warnings
|
||||
import importlib
|
||||
|
||||
from . import fixtures
|
||||
from importlib.metadata import (
|
||||
|
@ -260,3 +261,9 @@ class OffSysPathTests(fixtures.DistInfoPkgOffPath, unittest.TestCase):
|
|||
dist_info_path = self.site_dir / 'distinfo_pkg-1.0.0.dist-info'
|
||||
dist = Distribution.at(str(dist_info_path))
|
||||
assert dist.version == '1.0.0'
|
||||
|
||||
|
||||
class InvalidateCache(unittest.TestCase):
|
||||
def test_invalidate_cache(self):
|
||||
# No externally observable behavior, but ensures test coverage...
|
||||
importlib.invalidate_caches()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue