[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0)
- fixed flake8 finding
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 59f7e10..7731775 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@
language: python
files: \.py$
- repo: https://github.com/PyCQA/flake8
- rev: 6.0.0
+ rev: 6.1.0
hooks:
- id: flake8
language_version: python3
diff --git a/pyfakefs/fake_filesystem_unittest.py b/pyfakefs/fake_filesystem_unittest.py
index 386f215..6edcaa9 100644
--- a/pyfakefs/fake_filesystem_unittest.py
+++ b/pyfakefs/fake_filesystem_unittest.py
@@ -1090,7 +1090,7 @@
if name not in self.modules:
self._loaded_module_names.add(name)
return False
- if name in sys.modules and type(sys.modules[name]) == self.modules[name]:
+ if name in sys.modules and type(sys.modules[name]) is self.modules[name]:
return False
return True