File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -701,7 +701,16 @@ fn test_stdin_input_request(
701701 return TestResult :: Unsupported ;
702702 }
703703
704- let mock_input = "test_input_42" ;
704+ // The mock input includes quotes because some languages like GNU Octave
705+ // require a valid expression to be input.
706+ // If `test_input_42` is not a defined variable, this would make the kernel error.
707+ // A better fix would be to make the mock input language-dependent.
708+
709+ // Mock input includes quotes to ensure validity in languages like
710+ // GNU Octave, where unquoted undefined variables (e.g. `test_input_42`)
711+ // would cause a kernel error.
712+ // TODO: Make mock input language-dependent for robustness.
713+ let mock_input = "\" test_input_42\" " ;
705714
706715 match kernel. execute_with_stdin ( & code, mock_input) . await {
707716 Ok ( ( reply, _iopub, received_input_request) ) => {
You can’t perform that action at this time.
0 commit comments