We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c18e32 commit c9638b7Copy full SHA for c9638b7
pyfakefs/fake_filesystem_unittest.py
@@ -668,7 +668,8 @@ def cleanup(self):
668
reloaded_module_names = [module.__name__
669
for module in self._patcher.modules_to_reload]
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
+ # the next use, ensuring that no faked modules are referenced after the
672
+ # 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