<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jul 25, 2013, at 8:40 AM, Jonathan Lange <<a href="mailto:jml@mumak.net">jml@mumak.net</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr">On Thu, Jul 25, 2013 at 4:14 PM, Laurens Van Houtven<span class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:_@lvh.io" target="_blank">_@lvh.io</a>></span><span class="Apple-converted-space"> </span>wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="ltr">In addition to what jml said, I wonder if it makes sense for TestCase to raise when the return value of a test method is something other than None or a Deferred...<br><br></div></blockquote><div><br></div><div>Why stop there? Why not have a generic system to allow specifying valid return types for any function?</div></div></div></div></div></blockquote><br></div><div>That sounds like a great idea, I wonder if anyone's thought of it before.</div><div><br></div><div>We already encode the information in epytext.  Should we make it a dependency, so it can be parsed at runtime to aid with enforcement?</div><div><br></div><div>-glyph</div><br></body></html>