pypy/tool/pytest/test/test_conftest1.py::TestPyPyTests::()::test_selection_by_keyword_app
self = <pypy.tool.pytest.test.test_conftest1.TestPyPyTests instance at 0x000001d6c1a7f9a0>
def test_selection_by_keyword_app(self):
> passed, failed = subproc_run("-m", "applevel -docstring", innertest)
tool\pytest\test\test_conftest1.py:43:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = ['d:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\virt_test\\Scripts\\python.exe', 'd:\\pypy_stuff\\buildbot...cstring', 'd:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\pypy\\tool\\pytest\\test\\conftest1_innertest.py']
cur_dir = 'd:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\pypy\\tool\\pytest\\test'
test_all = local('d:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\pypy\\test_all.py')
failed = []
def subproc_run(*args):
# similar to testdir.inline_run(), but running a subprocess to avoid
# confusion. Parses the standard output of test_all.py, so somehow
# dependent on how it looks like.
cur_dir = str(py.path.local(__file__).dirpath())
test_all = py.path.local(__file__).dirpath('..', '..', '..', 'test_all.py')
args = [sys.executable, str(test_all), "-v"] + map(str, args)
print '=========>', args
passed, failed = [], []
popen = subprocess.Popen(args, stdout=subprocess.PIPE, cwd=cur_dir)
output, _ = popen.communicate()
for line in output.splitlines(False):
if line.startswith('conftest1_innertest.py'):
line = line[len('conftest1_innertest.py'):]
> testname, result = line.lstrip(':').strip().split()
E ValueError: expected length 2, got 1
tool\pytest\test\test_conftest1.py:24: ValueError
---------- Captured stdout call ----------
=========> ['d:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\virt_test\\Scripts\\python.exe', 'd:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\pypy\\test_all.py', '-v', '-m', 'applevel -docstring', 'd:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\pypy\\tool\\pytest\\test\\conftest1_innertest.py']
builder: own-win-x86-64 build #2387+
test: pypy/tool/pytest/test/test_conftest1.py::TestPyPyTests::()::test_selection_by_keyword_app