make test source syntax valid

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson 2010-04-23 20:49:00 -05:00
parent 1771cb0af8
commit 7629b8fda7
1 changed files with 3 additions and 4 deletions

View File

@ -279,10 +279,9 @@ class TestTerminal:
def pytest_report_header(config):
return "hello: info"
""")
testdir.mkdir("a").join("conftest.py").write("""if 1:
def pytest_report_header(config):
return ["line1", "line2"]
""")
testdir.mkdir("a").join("conftest.py").write("""
def pytest_report_header(config):
return ["line1", "line2"]""")
result = testdir.runpytest("a")
result.stdout.fnmatch_lines([
"*hello: info*",