return 'name' value looked up from the first conftest file
found up the path (including the path itself).
def getvalue(cls, name, path=None, default=dummy, trydefaultconfig=True):
origin: type
where:
exceptions that might appear during execution:
function source:
def getvalue(cls, name, path=None, default=dummy, trydefaultconfig=True):
""" return 'name' value looked up from the first conftest file
found up the path (including the path itself).
"""
configpaths = guessconfigpaths(path)
if trydefaultconfig:
configpaths.append(defaultconfig)
for p in configpaths:
try:
mod = cls._configs_cache[p]
except (KeyError, IndexError):
mod = importconfig(p)
cls._configs_cache[p] = mod
try:
return getattr(mod, name)
except AttributeError:
pass
if default is not dummy:
return default
raise ValueError("config value not found: %r, path=%r" % (name, path))
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.0
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.1
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.2
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.3
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.4
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.5
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.6
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.7
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.8
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.9
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.10
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.11
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.12
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.13
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.14
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.15
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.16
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.17
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.18
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.Config.getvalue.19
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py