[py-svn] py-trunk commit 227770df7a49: make test source syntax valid
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sat Apr 24 03:49:16 CEST 2010
# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview
# User Benjamin Peterson <benjamin at python.org>
# Date 1272073740 18000
# Node ID 227770df7a495e54d88e32cb8bc75331cdf4d439
# Parent a2d0599603e611152571adb0e5fee7b9eb9936cf
make test source syntax valid
--- a/testing/plugin/test_pytest_terminal.py
+++ b/testing/plugin/test_pytest_terminal.py
@@ -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*",
More information about the pytest-commit
mailing list