在运行端到端测试时,仅当执行在断点处停止时才会出现以下错误。恢复后,测试确实通过了。此外,如果我不断点,那么测试也会通过。我猜它与intellij和pydev设置有关。
Traceback (most recent call last):
File "C:\Users\ckhanna\.IdeaIC2016.3\config\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_vars.py", line 354, in evaluate_expression
compiled = compile(expression, '<string>', 'eval')
File "<string>", line 1
args.0
^
SyntaxError: unexpected EOF while parsing
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\ckhanna\.IdeaIC2016.3\config\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 1125, in do_it
result = pydevd_vars.evaluate_expression(self.thread_id, self.frame_id, self.expression, self.doExec)
File "C:\Users\ckhanna\.IdeaIC2016.3\config\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_vars.py", line 356, in evaluate_expression
Exec(expression, updated_globals, frame.f_locals)
File "C:\Users\ckhanna\.IdeaIC2016.3\config\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_exec2.py", line 3, in Exec
exec(exp, global_vars, local_vars)
File "<string>", line 1
args.0
^
SyntaxError: invalid syntax
NameError: name '__py_debug_temp_var_1721695151' is not defined