mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
gh-120801: Refactor importlib.metadata fixtures. (#120803)
These changes released with importlib_metadata 7.2.0.
This commit is contained in:
parent
c1553bc34a
commit
85d90b59e2
4 changed files with 11 additions and 28 deletions
|
|
@ -138,7 +138,7 @@ def test_unique_distributions(self):
|
|||
fixtures.build_files(self.make_pkg('abc'), self.site_dir)
|
||||
before = list(_unique(distributions()))
|
||||
|
||||
alt_site_dir = self.fixtures.enter_context(fixtures.tempdir())
|
||||
alt_site_dir = self.fixtures.enter_context(fixtures.tmp_path())
|
||||
self.fixtures.enter_context(self.add_sys_path(alt_site_dir))
|
||||
fixtures.build_files(self.make_pkg('ABC'), alt_site_dir)
|
||||
after = list(_unique(distributions()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue