We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adece72 commit 1c18e32Copy full SHA for 1c18e32
pyfakefs/fake_filesystem_unittest.py
@@ -667,9 +667,8 @@ def cleanup(self):
667
reload(module)
668
reloaded_module_names = [module.__name__
669
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.
+ # Dereference all modules loaded during the test so they will reload on
+ # next use, ensuring that no faked modules are referenced after the test
673
for name in self._loaded_module_names:
674
if name in sys.modules and name not in reloaded_module_names:
675
del sys.modules[name]
0 commit comments