code_junkie

Can you check that an exception is thrown with doctest in Python?

Nov 10th, 2011
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. >>> x
  2. Traceback (most recent call last):
  3. ...
  4. NameError: name 'x' is not defined
Add Comment
Please, Sign In to add comment