fix error reporting issue when a "pyc" file has no relating "py"

This commit is contained in:
holger krekel
2011-01-27 21:11:21 +01:00
parent adacd3491d
commit 762ea71f67
4 changed files with 10 additions and 4 deletions

View File

@@ -346,6 +346,12 @@ class TestInvocationVariants:
result.stdout.fnmatch_lines([
"*2 passed*"
])
path.join('test_hello.py').remove()
result = testdir.runpytest("--pyargs", "tpkg.test_hello")
assert result.ret != 0
result.stderr.fnmatch_lines([
"*file*not*found*test_hello.py",
])
def test_cmdline_python_package_not_exists(self, testdir):
result = testdir.runpytest("--pyargs", "tpkgwhatv")