Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r984:660f8bb17cf7 Date: 2012-10-07 18:14 +0200 http://bitbucket.org/cffi/cffi/changeset/660f8bb17cf7/
Log: Fix this test to run from any current working dir. diff --git a/testing/test_verify.py b/testing/test_verify.py --- a/testing/test_verify.py +++ b/testing/test_verify.py @@ -1187,7 +1187,8 @@ def test_callback_in_thread(): if sys.platform == 'win32': py.test.skip("pthread only") - import subprocess - g = subprocess.Popen([sys.executable, 'callback_in_thread.py']) + import os, subprocess + arg = os.path.join(os.path.dirname(__file__), 'callback_in_thread.py') + g = subprocess.Popen([sys.executable, arg]) result = g.wait() assert result == 0 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit