remove trailing whitespace everywhere

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-07-26 21:15:15 +02:00
parent 1693b9c407
commit 677f7c0a6a
219 changed files with 4400 additions and 4398 deletions

View File

@@ -20,27 +20,27 @@ class TestDoctest:
testdir.makepyfile(confrest=
"from py._plugin.pytest_restdoc import Project")
# we scope our confrest file so that it doesn't
# conflict with another global confrest.py
# conflict with another global confrest.py
testdir.makepyfile(__init__="")
return testdir
def test_doctest_extra_exec(self, testdir):
xtxt = testdir.maketxtfile(x="""
hello::
.. >>> raise ValueError
.. >>> raise ValueError
>>> None
""")
result = testdir.runpytest(xtxt)
result.stdout.fnmatch_lines(['*1 fail*'])
def test_doctest_basic(self, testdir):
def test_doctest_basic(self, testdir):
xtxt = testdir.maketxtfile(x="""
..
>>> from os.path import abspath
..
>>> from os.path import abspath
hello world
hello world
>>> assert abspath
>>> assert abspath
>>> i=3
>>> print (i)
3
@@ -57,7 +57,7 @@ class TestDoctest:
"*2 passed*"
])
def test_doctest_eol(self, testdir):
def test_doctest_eol(self, testdir):
ytxt = testdir.maketxtfile(y=".. >>> 1 + 1\r\n 2\r\n\r\n")
result = testdir.runpytest(ytxt)
result.stdout.fnmatch_lines(["*2 passed*"])
@@ -93,4 +93,4 @@ class TestDoctest:
outcomes = result.parseoutcomes()
assert outcomes['passed'] >= 1
assert 'failed' not in outcomes
assert 'skipped' not in outcomes
assert 'skipped' not in outcomes