This is a sample doctest in a text file, in which all examples fail or raise an exception. >>> 2 + 2 5 >>> 1/0 1 >>> def f(): ... 2 + '2' ... >>> f() 1 >>> 2+*3 5