Skip to content

Commit

Permalink
ref: Fix N803 flake8 failures
Browse files Browse the repository at this point in the history
Recently `flake8` started to fail with `N803` errors in some places where it had previously passed. This PR adds `# noqa` comments to suppress these errors.

Unblocks #3079
  • Loading branch information
szokeasaurusrex committed May 17, 2024
1 parent b922f40 commit 00111d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/integrations/aiohttp/test_aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ async def test_traces_sampler_gets_request_object_in_sampling_context(
sentry_init,
aiohttp_client,
DictionaryContaining, # noqa:N803
ObjectDescribedBy,
ObjectDescribedBy, # noqa: N803
):
traces_sampler = mock.Mock()
sentry_init(
Expand Down
4 changes: 2 additions & 2 deletions tests/integrations/aws_lambda/test_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ def test_handler(event, context):
def test_traces_sampler_gets_correct_values_in_sampling_context(
run_lambda_function,
DictionaryContaining, # noqa:N803
ObjectDescribedBy,
StringContaining,
ObjectDescribedBy, # noqa: N803
StringContaining, # noqa: N803
):
# TODO: This whole thing is a little hacky, specifically around the need to
# get `conftest.py` code into the AWS runtime, which is why there's both
Expand Down

0 comments on commit 00111d5

Please sign in to comment.