proper tests for issue74, thanks Arfrever

This commit is contained in:
Ronny Pfannschmidt 2011-10-26 23:59:22 +02:00
parent 2c230f910d
commit 5ae04397bd
1 changed files with 2 additions and 5 deletions

View File

@ -403,12 +403,9 @@ class TestInvocationVariants:
result.stdout.fnmatch_lines([ result.stdout.fnmatch_lines([
"*1 passed*" "*1 passed*"
]) ])
result = testdir.runpytest("--pyargs", ".")
assert result.ret == 0
result.stdout.fnmatch_lines([
"*2 passed*"
])
empty_package = testdir.mkpydir("empty_package")
monkeypatch.setenv('PYTHONPATH', empty_package)
result = testdir.runpytest("--pyargs", ".") result = testdir.runpytest("--pyargs", ".")
assert result.ret == 0 assert result.ret == 0
result.stdout.fnmatch_lines([ result.stdout.fnmatch_lines([