How to test that an exception is raised ?
Ishwor
ishwor.gurung at gmail.com
Fri Jan 28 07:40:46 EST 2005
[snipped alot of codes that doesn't mean much ]
if you want to check for exception then it goes like this
try:
<put your code here which fails on certain exception like maybe IOError>
catch IOError:
<put a code to do something when IOError is raised>
sorry i won't bother to read your code because i can't read, i think i
am tired and need to go to bed. ;-)
--
cheers,
Ishwor Gurung
More information about the Python-list
mailing list