def test_skip_dt_decorator():
 check = 'A function whose doctest we need to skip.\n\n    >>> 1+1\n    3\n    '
 val = doctest_bad.__doc__
 nt.assert_equal(check, val, "doctest_bad docstrings don't match")

def test_skip_dt_decorator ( ) : check = 'A function whose doctest we need to skip.\n\n    >>> 1+1\n    3\n    ' val = doctest_bad . __doc__ nt . assert_equal ( check , val , "doctest_bad docstrings don't match" )
doctest-skipping decorator should preserve the docstring .