def f(): def g(): """ >>> Expect a SyntaxError here """ import doctest doctest.testmod()