""" This doctest succeeds. >>> print "[0 1]" [0 1] These doctests fail with message: Expected: [0 1] Got: '[0 1]' >>> import numpy >>> numpy.array2string(numpy.arange(2)) [0 1] >>> numpy.array2string(numpy.arange(2)) #doctest: +NORMALIZE_WHITESPACE [0 1] """ def _test(): import doctest doctest.testmod() if __name__ == "__main__": _test()