Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r88482:7813ce03ef1f
Date: 2016-11-19 18:15 +0100
http://bitbucket.org/pypy/pypy/changeset/7813ce03ef1f/
Log: Fix to not depend on the current working directory
diff --git a/pypy/tool/pytest/test/test_conftest1.py
b/pypy/tool/pytest/test/test_conftest1.py
--- a/pypy/tool/pytest/test/test_conftest1.py
+++ b/pypy/tool/pytest/test/test_conftest1.py
@@ -11,11 +11,12 @@
# 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)
+ popen = subprocess.Popen(args, stdout=subprocess.PIPE, cwd=cur_dir)
output, _ = popen.communicate()
for line in output.splitlines(False):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit