Avoid Jupyter terminal job-control noise

This commit is contained in:
wuyang6
2026-06-12 21:38:53 +08:00
parent c91f65c856
commit c795ec1b5d
2 changed files with 31 additions and 2 deletions
+8
View File
@@ -35,6 +35,14 @@ class TestJupyterRuntimeOutputFiltering(unittest.TestCase):
self.assertEqual(output, 'actual')
def test_clean_terminal_output_drops_wrapper_job_control_line(self) -> None:
cleaned = clean_terminal_output(
'real-output\r\n'
'[1] + Done (setsid bash -lc "export A=1; lscpu")\r\n'
)
self.assertEqual(cleaned, 'real-output')
if __name__ == '__main__':
unittest.main()