Commit b1a0e894 authored by Stefan Behnel's avatar Stefan Behnel

error handling in __test__ dict creation code

parent e118e549
......@@ -6512,8 +6512,9 @@ class DocstringRefNode(ExprNode):
pass
def generate_result_code(self, code):
code.putln('%s = __Pyx_GetAttrString(%s, "__doc__");' %
(self.result(), self.body.result()))
code.putln('%s = __Pyx_GetAttrString(%s, "__doc__"); %s' % (
self.result(), self.body.result(),
code.error_goto_if_null(self.result(), self.pos)))
code.put_gotref(self.result())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment