Skip to content

Commit

Permalink
Re-use isolated_modules in ZipSetupBase.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 6, 2024
1 parent 8918e27 commit 99a41c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions importlib_resources/tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ def setUp(self):
self.fixtures = contextlib.ExitStack()
self.addCleanup(self.fixtures.close)

modules = import_helper.modules_setup()
self.addCleanup(import_helper.modules_cleanup, *modules)
self.fixtures.enter_context(import_helper.isolated_modules())

temp_dir = self.fixtures.enter_context(os_helper.temp_dir())
modules = pathlib.Path(temp_dir) / 'zipped modules.zip'
Expand Down

0 comments on commit 99a41c1

Please sign in to comment.