Merge pull request #800 from pytest-dev/confcutdir-test-fix

Check conftest.py is not loaded with --confcutdir.
This commit is contained in:
holger krekel (rather uses bitbucket/hpk42) 2015-06-23 10:57:33 +02:00
commit 53021ea264
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ def test_conftest_confcutdir(testdir):
"""))
result = testdir.runpytest("-h", "--confcutdir=%s" % x, x)
result.stdout.fnmatch_lines(["*--xyz*"])
assert 'warning: could not load initial' not in result.stdout.str()
def test_conftest_existing_resultlog(testdir):
x = testdir.mkdir("tests")