Skip to content

Commit b117fbc

Browse files
author
Artem Krivonos
committed
Fix test for python 3.10
1 parent 639ffb5 commit b117fbc

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/test_bootstrap.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -620,14 +620,7 @@ def test_handle_event_request_fault_exception_logging_syntax_error(
620620
bootstrap.StandardLogSink(),
621621
)
622622

623-
import sys
624-
625-
sys.stderr.write(mock_stdout.getvalue())
626-
627-
error_logs = (
628-
"[ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'a': "
629-
"unexpected EOF while parsing (<string>, line 1)\r"
630-
)
623+
error_logs = f"[ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'a': {syntax_error}\r"
631624
error_logs += "Traceback (most recent call last):\r"
632625
error_logs += '  File "<string>" Line 1\r'
633626
error_logs += "    -\n"

0 commit comments

Comments
 (0)