Merge pull request #232 from verdesmarald/master

Don't create DSession in collect-only mode
This commit is contained in:
Bruno Oliveira
2017-10-05 07:35:36 -03:00
committed by GitHub
4 changed files with 43 additions and 1 deletions

View File

@@ -262,6 +262,17 @@ class TestDistribution:
child.close()
# assert ret == 2
def test_dist_with_collectonly(self, testdir):
p1 = testdir.makepyfile("""
def test_ok():
pass
""")
result = testdir.runpytest(p1, "-n1", "--collect-only")
assert result.ret == 0
result.stdout.fnmatch_lines([
"*collected 1 item*",
])
class TestDistEach:
def test_simple(self, testdir):