Skip to content

Commit

Permalink
Update opentelemetry-sdk/tests/trace/test_trace.py
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
  • Loading branch information
lzchen and ocelotl authored Nov 13, 2020
1 parent ccdf15a commit b0e1ef0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions opentelemetry-sdk/tests/trace/test_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,10 +905,7 @@ def test_record_exception_with_attributes(self):

def test_record_exception_escaped(self):
span = trace._Span("name", mock.Mock(spec=trace_api.SpanContext))
try:
raise RuntimeError("error")
except RuntimeError as err:
span.record_exception(exception=err, escaped=True)
span.record_exception(exception=RuntimeError("error"), escaped=True)
exception_event = span.events[0]
self.assertEqual("exception", exception_event.name)
self.assertEqual(
Expand Down

0 comments on commit b0e1ef0

Please sign in to comment.