Ken Johnson wrote:<SNIP>
<SNIP>This should be self.failUnlessRaises(IOError, DNA, '1 ATG')
In your usage, you are calling DNA() and passing the result of the call to failUnlessRaises(). TheAh, I see.
call to DNA raises IOError. This happens *before* the call to failUnlessRaises(), so it is
interpreted as an error.
Indeed, this is remarkable. Perhaps it's time for me to look into this once?
BTW, failUnlessRaises() is implemented using the extended call syntax that came up recently in
another thread, and it is a good example of why this syntax is useful. It's also interesting that
the except: statement uses the class that was passed in; I had no idea an except was dynamic in this
way.
Anyway, thank you Kent, now everything is working just fine.
Everybody a Merry Christmas! Christian
_______________________________________________ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor