From e3f015e78c94366bb7788b5194b581b705f89e1e Mon Sep 17 00:00:00 2001 From: Romain Francois Date: Thu, 9 Nov 2023 11:05:06 +0100 Subject: [PATCH] impl test_stderr to test publish_stream --- test/test_xr_kernel.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_xr_kernel.py b/test/test_xr_kernel.py index 1d9d4e3..ccc4caa 100644 --- a/test/test_xr_kernel.py +++ b/test/test_xr_kernel.py @@ -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") ######################################################################################### #########################################################################################