fix issue27 - --collectonly and -k keyword selection now work together.

internally, collectonly and terminal reporting has been unified.
This commit is contained in:
holger krekel
2011-03-06 18:32:00 +01:00
parent 18e784c9c9
commit c552b58dc5
8 changed files with 91 additions and 117 deletions

View File

@@ -359,8 +359,8 @@ class TestConftestCustomization:
if path.basename == "test_xyz.py":
return MyModule(path, parent)
""")
testdir.makepyfile("def some(): pass")
testdir.makepyfile(test_xyz="")
testdir.makepyfile("def test_some(): pass")
testdir.makepyfile(test_xyz="def test_func(): pass")
result = testdir.runpytest("--collectonly")
result.stdout.fnmatch_lines([
"*<Module*test_pytest*",