Author: Ronan Lamy <[email protected]>
Branch:
Changeset: r70618:b99cd90609fe
Date: 2014-04-13 19:10 +0100
http://bitbucket.org/pypy/pypy/changeset/b99cd90609fe/
Log: argparse compatibility
diff --git a/rpython/jit/backend/conftest.py b/rpython/jit/backend/conftest.py
--- a/rpython/jit/backend/conftest.py
+++ b/rpython/jit/backend/conftest.py
@@ -6,7 +6,7 @@
def pytest_addoption(parser):
group = parser.getgroup('random test options')
- group.addoption('--random-seed', action="store", type="int",
+ group.addoption('--random-seed', action="store", type=int,
default=random.randrange(0, 10000),
dest="randomseed",
help="choose a fixed random seed")
@@ -15,19 +15,19 @@
choices=['llgraph', 'cpu'],
dest="backend",
help="select the backend to run the functions with")
- group.addoption('--block-length', action="store", type="int",
+ group.addoption('--block-length', action="store", type=int,
default=30,
dest="block_length",
help="insert up to this many operations in each test")
- group.addoption('--n-vars', action="store", type="int",
+ group.addoption('--n-vars', action="store", type=int,
default=10,
dest="n_vars",
help="supply this many randomly-valued arguments to "
"the function")
- group.addoption('--repeat', action="store", type="int",
+ group.addoption('--repeat', action="store", type=int,
default=15,
dest="repeat",
help="run the test this many times"),
- group.addoption('--output', '-O', action="store", type="str",
+ group.addoption('--output', '-O', action="store", type=str,
default="", dest="output",
help="dump output to a file")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit