This repository has been archived by the owner on Aug 29, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ulif
committed
Sep 27, 2013
1 parent
1158602
commit f92b404
Showing
3 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,7 +217,8 @@ def doctest_get_svn_revision(): | |
def doctest_syntax_highlight_with_enscript(): | ||
"""Test for syntax_highlight | ||
This function takes a cover file, converts it to a nicely colored HTML output: | ||
This function takes a cover file, converts it to a nicely colored | ||
HTML output: | ||
>>> filename = os.path.join( | ||
... os.path.dirname(z3c.coverage.__file__), '__init__.py') | ||
|
@@ -264,6 +265,7 @@ def doctest_syntax_highlight_without_enscript(): | |
""" | ||
|
||
|
||
def doctest_main_default_arguments(): | ||
"""Test for main() | ||
|
@@ -300,9 +302,11 @@ def doctest_main_default_arguments(): | |
""" | ||
|
||
|
||
def setUp(test): | ||
test.globs['print_function'] = print_function | ||
|
||
|
||
def test_suite(): | ||
checker = renormalizing.RENormalizing([ | ||
# optparse in Python 2.4 prints "usage:" and "options:", | ||
|
@@ -315,11 +319,11 @@ def test_suite(): | |
return unittest.TestSuite([ | ||
doctest.DocFileSuite( | ||
'README.txt', setUp=setUp, checker=checker, | ||
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS, | ||
optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS, | ||
This comment has been minimized.
Sorry, something went wrong.
mgedmin
Member
|
||
), | ||
doctest.DocFileSuite( | ||
'coveragediff.txt', setUp=setUp, checker=checker, | ||
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS, | ||
optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS, | ||
This comment has been minimized.
Sorry, something went wrong. |
||
), | ||
doctest.DocTestSuite(checker=checker), | ||
doctest.DocTestSuite( | ||
|
@@ -328,5 +332,6 @@ def test_suite(): | |
'z3c.coverage.coveragereport'), | ||
]) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main(defaultTest='test_suite') |
Whoops, this introduced a bug and I didn't notice: the
n += 1
is no longer necessary if you passstart=1
toenumerate()
.