diff --git a/poetry.lock b/poetry.lock index c4db2a456b1..b06738c5b3a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -597,14 +597,14 @@ develop = ["build", "twine"] [[package]] name = "flake8-bugbear" -version = "22.12.6" +version = "23.1.20" description = "A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle." category = "dev" optional = false python-versions = ">=3.7" files = [ - {file = "flake8-bugbear-22.12.6.tar.gz", hash = "sha256:4cdb2c06e229971104443ae293e75e64c6107798229202fbe4f4091427a30ac0"}, - {file = "flake8_bugbear-22.12.6-py3-none-any.whl", hash = "sha256:b69a510634f8a9c298dfda2b18a8036455e6b19ecac4fe582e4d7a0abfa50a30"}, + {file = "flake8-bugbear-23.1.20.tar.gz", hash = "sha256:55902ab5a48c5ea53d8689ecd146eda548e72f2724192b9c1d68f6d975d13c06"}, + {file = "flake8_bugbear-23.1.20-py3-none-any.whl", hash = "sha256:04a115e5f9c8e87c38bdbbcdf9f58223ffe05469c07c9a7bd8633330bc4d078b"}, ] [package.dependencies] @@ -612,7 +612,7 @@ attrs = ">=19.2.0" flake8 = ">=3.0.0" [package.extras] -dev = ["coverage", "hypothesis", "hypothesmith (>=0.2)", "pre-commit", "tox"] +dev = ["coverage", "hypothesis", "hypothesmith (>=0.2)", "pre-commit", "pytest", "tox"] [[package]] name = "flake8-builtins" @@ -2666,4 +2666,4 @@ validation = ["fastjsonschema"] [metadata] lock-version = "2.0" python-versions = "^3.7.4" -content-hash = "599f640b527a1990f40b58c1a0915388385a3054d148dd83e840687ca6134c14" +content-hash = "56cd214c7cf052567ee4dc5829d2801b57dc8b484e185ccccac149275695619e" diff --git a/pyproject.toml b/pyproject.toml index 3e3f2903f2d..e9aed57ce76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ bandit = "^1.7.1" radon = "^5.1.0" xenon = "^0.9.0" flake8-eradicate = "^1.2.1" -flake8-bugbear = "^22.12.6" +flake8-bugbear = "^23.1.20" mkdocs-git-revision-date-plugin = "^0.3.2" mike = "^1.1.2" retry = "^0.9.2" diff --git a/tests/functional/idempotency/test_idempotency.py b/tests/functional/idempotency/test_idempotency.py index 8d78c1bdf2b..e3131747e48 100644 --- a/tests/functional/idempotency/test_idempotency.py +++ b/tests/functional/idempotency/test_idempotency.py @@ -397,7 +397,7 @@ def test_idempotent_lambda_exception( def lambda_handler(event, context): raise Exception("Something went wrong!") - with pytest.raises(Exception): + with pytest.raises(Exception, match="Something went wrong!"): lambda_handler(lambda_apigw_event, lambda_context) stubber.assert_no_pending_responses()