Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent header does not match expected #43

Closed
snmhas opened this issue Jul 30, 2018 · 1 comment
Closed

Parent header does not match expected #43

snmhas opened this issue Jul 30, 2018 · 1 comment

Comments

@snmhas
Copy link

snmhas commented Jul 30, 2018

Hi all,
I don't have enough knowledge about test code in Jupyterlab. I am trying to developed test code for my custom kernel. I am getting bellow error when I ran test code using python3.

Error :
File ".../jupyter_kernel_test/jupyter_kernel_test/msgspec_v5.py", line 121, in validate_message
raise ValidationError("Parent header does not match expected")
jsonschema.exceptions.ValidationError: Parent header does not match expected.

Test Code :
def test_mykernel(self):
reply, output_msgs = self.execute_helper(code='version()')
self.assertEqual(output_msgs[0]['msg_type'], 'execute_result')
self.assertEqual(output_msgs[0]['content']['name'], 'stdout')
self.assertEqual(output_msgs[0]['content']['text'], 'v0.4.7')

Jupyterlab result :
capture

@blink1073
Copy link
Contributor

Hi @snmhas, we've relaxed the parent header requirement for non-reply, messages in #62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants