Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
627728ac
Commit
627728ac
authored
May 17, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use test_support.run_doctest()
parent
35b34bd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_getopt.py
Lib/test/test_getopt.py
+3
-3
No files found.
Lib/test/test_getopt.py
View file @
627728ac
...
...
@@ -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
)
#------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment