[pypy-svn] r62018 - pypy/trunk/pypy
pedronis at codespeak.net
pedronis at codespeak.net
Thu Feb 19 13:41:24 CET 2009
Author: pedronis
Date: Thu Feb 19 13:41:21 2009
New Revision: 62018
Modified:
pypy/trunk/pypy/conftest.py
Log:
fixes the help and avoids the strange hack
Modified: pypy/trunk/pypy/conftest.py
==============================================================================
--- pypy/trunk/pypy/conftest.py (original)
+++ pypy/trunk/pypy/conftest.py Thu Feb 19 13:41:21 2009
@@ -23,7 +23,6 @@
def _set_platform(opt, opt_str, value, parser):
from pypy.config.translationoption import PLATFORMS
from pypy.translator.platform import set_platform
- value = parser.rargs.pop(0)
if value not in PLATFORMS:
raise ValueError("%s not in %s" % (value, PLATFORMS))
set_platform(value, None)
@@ -37,7 +36,7 @@
Option('--direct', action="store_true",
default=False, dest="rundirect",
help="run pexpect tests directly"),
- Option('-P', '--platform', action="callback",
+ Option('-P', '--platform', action="callback", type="string",
default="host", callback=_set_platform,
help="set up tests to use specified platform as compile/run target"),
)
More information about the Pypy-commit
mailing list