[pypy-commit] pypy refine-testrunner: fix scratchbox test
RonnyPfannschmidt
noreply at buildbot.pypy.org
Sat Sep 15 20:08:27 CEST 2012
Author: Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
Branch: refine-testrunner
Changeset: r57356:c0a7d8d5329e
Date: 2012-09-15 18:11 +0200
http://bitbucket.org/pypy/pypy/changeset/c0a7d8d5329e/
Log: fix scratchbox test
diff --git a/testrunner/test/test_scratchbox_runner.py b/testrunner/test/test_scratchbox_runner.py
--- a/testrunner/test/test_scratchbox_runner.py
+++ b/testrunner/test/test_scratchbox_runner.py
@@ -1,5 +1,9 @@
+import sys
import scratchbox_runner
-def test_scratchbox():
- expected = ['/scratchbox/login', '-d', 'x/y', 'a', 'b']
- assert scratchbox_runner.args_for_scratchbox('x/y', ['a', 'b']) == expected
+def test_scratchbox(tmpdir):
+ out = tmpdir.join('out').open('w')
+
+ param = scratchbox_runner.ScratchboxRunParam(tmpdir, out)
+ expected = ['/scratchbox/login', '-d', tmpdir.strpath, sys.executable]
+ assert param.interp == expected
More information about the pypy-commit
mailing list