Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Feb 16, 2024
1 parent d6f3c1b commit f165887
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,11 @@ def test_lambda_handles_list_event(self):
assert spans

def test_lambda_handles_handler_exception(self):
self.exc_env_patch = mock.patch.dict(
exc_env_patch = mock.patch.dict(
"os.environ",
{_HANDLER: "tests.mocks.lambda_function.handler_exc"},
)
self.exc_env_patch.start()
exc_env_patch.start()
AwsLambdaInstrumentor().instrument()
# instrumentor re-raises the exception
with self.assertRaises(Exception):
Expand All @@ -429,7 +429,7 @@ def test_lambda_handles_handler_exception(self):
event = span.events[0]
self.assertEqual(event.name, "exception")

self.exc_env_patch.stop()
exc_env_patch.stop()

def test_uninstrument(self):
AwsLambdaInstrumentor().instrument()
Expand Down

0 comments on commit f165887

Please sign in to comment.