pypy/tool/pytest/test/test_conftest1.py::TestPyPyTests::()::test_docstring_in_methods
self = <pypy.tool.pytest.test.test_conftest1.TestPyPyTests instance at 0x00007fdb892fa0e0>
def test_docstring_in_methods(self):
passed, failed = subproc_run("-k", "AppTestSomething and test_code_in_docstring",
> innertest)
tool/pytest/test/test_conftest1.py:50:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = ['/Users/matti/build-worker-x86_64/own-macos-x86-64/build/virt_test/bin/python', '/Users/matti/build-worker-x86_64/own..._in_docstring', '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/tool/pytest/test/conftest1_innertest.py']
cur_dir = '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/tool/pytest/test'
test_all = local('/Users/matti/build-worker-x86_64/own-macos-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 ----------
=========> ['/Users/matti/build-worker-x86_64/own-macos-x86-64/build/virt_test/bin/python', '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/test_all.py', '-v', '-k', 'AppTestSomething and test_code_in_docstring', '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/tool/pytest/test/conftest1_innertest.py']
builder: own-macos-x86-64 build #1350+
test: pypy/tool/pytest/test/test_conftest1.py::TestPyPyTests::()::test_docstring_in_methods