[TIP] Testing for wrong type errors

Nate Lowrie solodex2151 at gmail.com
Mon Nov 12 08:26:36 PST 2007


I am just curious.  Since Python doesn't have explicit type
declarations, do y'all test for type errors.  For example, if you're
writing a test for a function that has argument A that needs to be an
int, do you have a test to see if it throws an error if it is another
type like a string or do you just assume that other functions and
methods will play nice?

Cheers,

Nate L.



More information about the testing-in-python mailing list