don't add opts in sub processes, add -rf by default

This commit is contained in:
holger krekel
2010-11-01 08:56:47 +01:00
parent 4cd76363f6
commit 4661db0fef
6 changed files with 14 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ class TestDistribution:
"*1 passed*",
])
def test_dist_conftest_specified(self, testdir):
def test_dist_ini_specified(self, testdir):
p1 = testdir.makepyfile("""
import py
def test_fail0():
@@ -95,8 +95,9 @@ class TestDistribution:
py.test.skip("hello")
""",
)
testdir.makeconftest("""
option_tx = 'popen popen popen'.split()
testdir.makeini("""
[pytest]
addopts = --tx=3*popen
""")
result = testdir.runpytest(p1, '-d', "-v")
result.stdout.fnmatch_lines([