Message25179
The doctest ELLPSIS marker (default: "...") may be
confused by the doctest parser with the multiline
statement marker ("...").
Example: in the following code, the intent was to accept
any result after "print 42". This is NOT a multiline
statement,
but however the test fails (Expected: nothing, Got: 42).
----------------------------------------
#!/usr/bin/env python
import doctest
def test():
"""
>>> print 42 #doctest: +ELLIPSIS
...
"""
def run():
"Run the test."
doctest.testmod()
if __name__ == '__main__':
run()
---------------------------------------- |
|
Date |
User |
Action |
Args |
2007-08-23 14:31:18 | admin | link | issue1192554 messages |
2007-08-23 14:31:18 | admin | create | |
|