[pypy-commit] pypy default: return an absolute path: since we chdir before executing the tests, relative paths hardcoded in a global object don't work

antocuni noreply at buildbot.pypy.org
Tue Jun 12 10:17:22 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r55607:dbfbba7dc013
Date: 2012-06-12 10:17 +0200
http://bitbucket.org/pypy/pypy/changeset/dbfbba7dc013/

Log:	return an absolute path: since we chdir before executing the tests,
	relative paths hardcoded in a global object don't work

diff --git a/pypy/translator/goal/test2/test_app_main.py b/pypy/translator/goal/test2/test_app_main.py
--- a/pypy/translator/goal/test2/test_app_main.py
+++ b/pypy/translator/goal/test2/test_app_main.py
@@ -23,8 +23,7 @@
 def getscript(source):
     p = _get_next_path()
     p.write(str(py.code.Source(source)))
-    # return relative path for testing purposes 
-    return py.path.local().bestrelpath(p) 
+    return str(p)
 
 def getscript_pyc(space, source):
     p = _get_next_path()


More information about the pypy-commit mailing list