Message194294
| Author |
r.david.murray |
| Recipients |
WitcherGeralt, mark.dickinson, mrDoctorWho0.., r.david.murray |
| Date |
2013年08月03日.19:54:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1375559664.67.0.174720682228.issue18642@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If your code is catching an exception generated by an assert statement, your code is using assert incorrectly. There is never any reason, as far as I can see, to catch an assert outside of a testing framework, and in a testing framework you definitely want to be catching an AssertionError when you are trying to catch an assert failing. Making it some other error would just confuse the testing framework. |
|