Avoid Jupyter terminal job-control noise
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user