Skip to content

Commit

Permalink
build(deps-dev): bump flake8-comprehensions from 3.10.1 to 3.14.0 (#1956
Browse files Browse the repository at this point in the history
)

* build(deps-dev): bump flake8-comprehensions from 3.10.1 to 3.14.0

Bumps [flake8-comprehensions](https://github.com/adamchainz/flake8-comprehensions) from 3.10.1 to 3.14.0.
- [Changelog](https://github.com/adamchainz/flake8-comprehensions/blob/main/CHANGELOG.rst)
- [Commits](adamchainz/flake8-comprehensions@3.10.1...3.14.0)

---
updated-dependencies:
- dependency-name: flake8-comprehensions
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Removing unnecessary comprehensions

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jake Skipper <jake.skipper@rackspace.com>
  • Loading branch information
dependabot[bot] and Jake Skipper authored Aug 15, 2023
1 parent e7933af commit 8247766
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions runway/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,9 @@ def __init__(
self.__os_environ = dict(os.environ)
self.__sys_argv = list(sys.argv)
# deepcopy can't pickle sys.modules and dict()/.copy() are not safe
# pylint: disable=unnecessary-comprehension
self.__sys_modules = {k: v for k, v in sys.modules.items()}
self.__sys_modules = {}
for k, v in sys.modules.items():
self.__sys_modules[k] = v
self.__sys_path = list(sys.path)
# more informative origin for log statements
self.logger = logging.getLogger("runway." + self.__class__.__name__)
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ def test_sys_modules(
caplog.set_level(logging.DEBUG, "runway.SafeHaven")
monkeypatch.setattr(SafeHaven, "reset_all", MagicMock())

# pylint: disable=unnecessary-comprehension
orig_val = {k: v for k, v in sys.modules.items()}
orig_val = {}
for k, v in sys.modules.items():
orig_val[k] = v
expected_logs = ["entering a safe haven...", "resetting sys.modules..."]

with SafeHaven() as obj:
Expand Down

0 comments on commit 8247766

Please sign in to comment.