Skip to content

Commit 1c18e32

Browse files
authored
Correct my comment
1 parent adece72 commit 1c18e32

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pyfakefs/fake_filesystem_unittest.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,8 @@ def cleanup(self):
667667
reload(module)
668668
reloaded_module_names = [module.__name__
669669
for module in self._patcher.modules_to_reload]
670-
# Dereference all force all modules loaded during the test so they
671-
# will reload on next use, to ensure that no faked modules are referenced
672-
# after the test.
670+
# Dereference all modules loaded during the test so they will reload on
671+
# next use, ensuring that no faked modules are referenced after the test
673672
for name in self._loaded_module_names:
674673
if name in sys.modules and name not in reloaded_module_names:
675674
del sys.modules[name]

0 commit comments

Comments
 (0)