[py-svn] r10574 - py/branch/py-collect/test
hpk at codespeak.net
hpk at codespeak.net
Wed Apr 13 14:28:47 CEST 2005
Author: hpk
Date: Wed Apr 13 14:28:47 2005
New Revision: 10574
Modified:
py/branch/py-collect/test/config.py
Log:
normalizing options a bit more
Modified: py/branch/py-collect/test/config.py
==============================================================================
--- py/branch/py-collect/test/config.py (original)
+++ py/branch/py-collect/test/config.py Wed Apr 13 14:28:47 2005
@@ -54,7 +54,8 @@
getvalue = classmethod(getvalue)
def parse(cls, args):
- """ return Config object from parsing command line arguments.
+ """ return Config object and remaining arguments from parsing
+ command line arguments.
"""
configpaths = guessconfigpaths(*getanchorpaths(args))
config = bootstrapconfig(configpaths)
@@ -110,7 +111,7 @@
#
def fixoptions(option):
- """ sanity checks and slight postprocessing of options. """
+ """ sanity checks and making option values canonical. """
if option.looponfailing and option.usepdb:
raise ValueError, "--looponfailing together with --pdb not supported yet."
if option.executable and option.usepdb:
@@ -123,6 +124,8 @@
exe = py.path.local.sysfind(option.executable)
assert exe.check()
option.executable = exe
+ else:
+ option.executable = py.std.sys.executable
# setting a correct frontend session
if option.session:
More information about the pytest-commit
mailing list