summaryrefslogtreecommitdiff
path: root/test/cmark.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/cmark.py')
-rw-r--r--test/cmark.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cmark.py b/test/cmark.py
index 4be85a3..f4ff576 100644
--- a/test/cmark.py
+++ b/test/cmark.py
@@ -30,6 +30,8 @@ def to_commonmark(lib, text):
render_commonmark.restype = c_char_p
render_commonmark.argtypes = [c_void_p, c_int, c_int]
node = parse_document(textbytes, textlen, 0)
+ if node is None:
+ raise Exception("parse_document failed")
result = render_commonmark(node, 0, 0).decode('utf-8')
return [0, result, '']