Skip to content

Commit 6869155

Browse files
author
Michael Brewer
authored
chore(metrics): fix tests when warnings are disabled (#994)
1 parent 207b3df commit 6869155

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: tests/functional/test_metrics.py

+1
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ def lambda_handler(evt, context):
552552

553553
# THEN it should raise a warning instead of throwing an exception
554554
with warnings.catch_warnings(record=True) as w:
555+
warnings.simplefilter("default")
555556
lambda_handler({}, {})
556557
assert len(w) == 1
557558
assert str(w[-1].message) == "No metrics to publish, skipping"

0 commit comments

Comments
 (0)