On Jul 25, 2013, at 8:40 AM, Jonathan Lange <j...@mumak.net> wrote:

> On Thu, Jul 25, 2013 at 4:14 PM, Laurens Van Houtven <_...@lvh.io> wrote:
> 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...
> 
> 
> Why stop there? Why not have a generic system to allow specifying valid 
> return types for any function?

That sounds like a great idea, I wonder if anyone's thought of it before.

We already encode the information in epytext.  Should we make it a dependency, 
so it can be parsed at runtime to aid with enforcement?

-glyph

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to