File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed
Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,21 @@ def test_given_exception_with_display_message_when_assemble_uncaught_exception_t
4747def test_uncaught_exception_handler ():
4848 cmd = "from airbyte_cdk.logger import init_logger; from airbyte_cdk.exception_handler import init_uncaught_exception_handler; logger = init_logger('airbyte'); init_uncaught_exception_handler(logger); raise 1"
4949 exception_message = "exceptions must derive from BaseException"
50- exception_trace = (
51- "Traceback (most recent call last):\n "
52- ' File "<string>", line 1, in <module>\n '
53- "TypeError: exceptions must derive from BaseException"
54- )
50+
51+ if sys .version_info >= (3 , 13 ):
52+ exception_trace = (
53+ "Traceback (most recent call last):\n "
54+ ' File "<string>", line 1, in <module>\n '
55+ " from airbyte_cdk.logger import init_logger; from airbyte_cdk.exception_handler import init_uncaught_exception_handler; logger = init_logger('airbyte'); init_uncaught_exception_handler(logger); raise 1\n "
56+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n "
57+ "TypeError: exceptions must derive from BaseException"
58+ )
59+ else :
60+ exception_trace = (
61+ "Traceback (most recent call last):\n "
62+ ' File "<string>", line 1, in <module>\n '
63+ "TypeError: exceptions must derive from BaseException"
64+ )
5565
5666 expected_log_message = AirbyteMessage (
5767 type = MessageType .LOG ,
You can’t perform that action at this time.
0 commit comments