Author: Ronny Pfannschmidt <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit