File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
opentelemetry-sdk/tests/trace Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 15
15
# pylint: disable=too-many-lines
16
16
import shutil
17
17
import subprocess
18
- import sys
19
18
import unittest
20
19
from importlib import reload
21
20
from logging import ERROR , WARNING
@@ -1187,13 +1186,6 @@ def test_record_exception_context_manager(self):
1187
1186
stacktrace = """in test_record_exception_context_manager
1188
1187
raise RuntimeError("example error")
1189
1188
RuntimeError: example error"""
1190
- if sys .version_info >= (3 , 11 ):
1191
- # https://docs.python.org/3.11/whatsnew/3.11.html#enhanced-error-locations-in-tracebacks
1192
- tracelines = stacktrace .splitlines ()
1193
- tracelines .insert (
1194
- - 1 , " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1195
- )
1196
- stacktrace = "\n " .join (tracelines )
1197
1189
self .assertIn (stacktrace , event .attributes ["exception.stacktrace" ])
1198
1190
1199
1191
try :
You can’t perform that action at this time.
0 commit comments