Skip to content

Commit

Permalink
Reload all
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbean-bremen committed Jan 11, 2024
1 parent c453f40 commit 0cd74d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyfakefs/fake_filesystem_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,8 +1098,8 @@ def cleanup(self) -> None:
# in the unlikely case that the cache is turned off,
# we have to reload all modules
# if not self._patcher.use_cache or name in Patcher.CACHED_MODULES:
# reload(sys.modules[name])
del sys.modules[name]
reload(sys.modules[name])
# del sys.modules[name]

def needs_patch(self, name: str) -> bool:
"""Check if the module with the given name shall be replaced."""
Expand Down

0 comments on commit 0cd74d8

Please sign in to comment.