Skip to content

Commit 3c652de

Browse files
committed
Add aborted message_spec
1 parent e213664 commit 3c652de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ipykernel/tests/test_message_spec.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def check(self, d):
114114
ExecuteReplyOkay().check(d)
115115
elif d['status'] == 'error':
116116
ExecuteReplyError().check(d)
117+
elif d['status'] == 'aborted':
118+
ExecuteReplyAborted().check(d)
117119

118120

119121
class ExecuteReplyOkay(Reply):
@@ -122,11 +124,16 @@ class ExecuteReplyOkay(Reply):
122124

123125

124126
class ExecuteReplyError(Reply):
127+
status = Enum(('error',))
125128
ename = Unicode()
126129
evalue = Unicode()
127130
traceback = List(Unicode())
128131

129132

133+
class ExecuteReplyAborted(Reply):
134+
status = Enum(('aborted',))
135+
136+
130137
class InspectReply(Reply, MimeBundle):
131138
found = Bool()
132139

0 commit comments

Comments
 (0)