Skip to content

Commit

Permalink
impl test_stderr to test publish_stream
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Nov 9, 2023
1 parent 34178b4 commit e3f015e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_xr_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def test_stdout(self):
self.assertEqual(output_msgs[0]["content"]["name"], "stdout")
self.assertEqual(output_msgs[0]["content"]["text"], "hello, world")

#def test_stderr(self):
#self.flush_channels()
#reply, output_msgs = self.execute_helper(code="error")
#self.assertEqual(output_msgs[0]["msg_type"], "stream")
#self.assertEqual(output_msgs[0]["content"]["name"], "stderr")
def test_stderr(self):
self.flush_channels()
reply, output_msgs = self.execute_helper(code="message('error')")
self.assertEqual(output_msgs[0]["msg_type"], "stream")
self.assertEqual(output_msgs[0]["content"]["name"], "stderr")

#########################################################################################
#########################################################################################
Expand Down

0 comments on commit e3f015e

Please sign in to comment.