diff options
author | Raymond Hettinger <python@rcn.com> | 2003-05-17 01:08:35 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-05-17 01:08:35 (GMT) |
commit | 627728acbc36995da8cc19935c993e62c0e21e98 (patch) | |
tree | 0754c049a3704ae09e8e7f8f35b707faa1c7c915 /Lib/test/test_getopt.py | |
parent | 35b34bd3260516e2a6d9073d14e2424dd7f40b66 (diff) | |
download | cpython-627728acbc36995da8cc19935c993e62c0e21e98.zip cpython-627728acbc36995da8cc19935c993e62c0e21e98.tar.gz cpython-627728acbc36995da8cc19935c993e62c0e21e98.tar.bz2 |
Use test_support.run_doctest()
Diffstat (limited to 'Lib/test/test_getopt.py')
-rw-r--r-- | Lib/test/test_getopt.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_getopt.py b/Lib/test/test_getopt.py index 13834b8..0470851 100644 --- a/Lib/test/test_getopt.py +++ b/Lib/test/test_getopt.py @@ -3,7 +3,7 @@ import getopt from getopt import GetoptError -from test.test_support import verify, verbose +from test.test_support import verify, verbose, run_doctest import os def expectException(teststr, expected, failure=AssertionError): @@ -161,8 +161,8 @@ Using long option names is equally easy: __test__ = {'libreftest' : libreftest} -import doctest, sys -doctest.testmod(sys.modules[__name__]) +import sys +run_doctest(sys.modules[__name__], verbose) #------------------------------------------------------------------------------ |