diff options
author | Guido van Rossum <guido@python.org> | 2001-04-06 19:39:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-04-06 19:39:11 (GMT) |
commit | 58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc (patch) | |
tree | 9cca0b16e770158e67ed0775f641e471a1338c97 /Python/hypot.c | |
parent | f95423e2659a08703e37c7fc111d0f60ad3550a4 (diff) | |
download | cpython-58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc.zip cpython-58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc.tar.gz cpython-58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc.tar.bz2 |
Since this module already uses doctest-style examples, I figured I'd
add a self-test using doctest. Results:
- The docstring needs to be a raw string because it uses \"...\".
- The oreo example was broken: the Set-Cookie output doesn't add
quotes around "doublestuff".
- I had to change the example that prints the class of a Cookie.Cookie
instance to avoid incorporating an arbitrary object address in the
test output.
Pretty good score for both doctest and the doc string, I'd say!
Diffstat (limited to 'Python/hypot.c')
0 files changed, 0 insertions, 0 deletions