fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
⌀
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
566
_collectfile
def
function
def _collectfile( self, fspath: Path, handle_dupes: bool = _True ) -> Sequence[nodes.Collector]: assert ( fspath.is_file() ), "{!r} is not a file (isdir={!r}, exists={!r}, islink={!r})".format( fspath, fspath.is_dir(), fspath.exists(), fspath.is_symlink() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
574
gethookproxy
ref
function
ihook = self.gethookproxy(fspath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
575
isinitpath
ref
function
if not self.isinitpath(fspath):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
576
pytest_ignore_collect
ref
function
if ihook.pytest_ignore_collect(fspath=fspath, config=self.config):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
580
getoption
ref
function
keepduplicates = self.config.getoption("keepduplicates")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
588
pytest_collect_file
ref
function
return ihook.pytest_collect_file(fspath=fspath, parent=self) # type: ignore[no-any-return]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
591
perform_collect
def
function
def perform_collect( self, args: Optional[Sequence[str]] = ..., genitems: "Literal[_True]" = ... ) -> Sequence[nodes.Item]: ... @overload def perform_collect( self, args: Optional[Sequence[str]] = ..., genitems: bool = ... ) -> Sequence[Union[nodes.Item, nodes.Collector]]: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
597
perform_collect
def
function
def perform_collect( self, args: Optional[Sequence[str]] = ..., genitems: "Literal[_True]" = ... ) -> Sequence[nodes.Item]: ... @overload def perform_collect( self, args: Optional[Sequence[str]] = ..., genitems: bool = ... ) -> Sequence[Union[nodes.Item, nodes.Collector]]: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
602
perform_collect
def
function
def perform_collect( self, args: Optional[Sequence[str]] = ..., genitems: "Literal[_True]" = ... ) -> Sequence[nodes.Item]: ... @overload def perform_collect( self, args: Optional[Sequence[str]] = ..., genitems: bool = ... ) -> Sequence[Union[nodes.Item, nodes.Collector]]: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
622
trace
ref
function
self.trace("perform_collect", self, args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
635
resolve_collection_argument
ref
function
fspath, parts = resolve_collection_argument(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
643
collect_one_node
ref
function
rep = collect_one_node(self)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
644
pytest_collectreport
ref
function
self.ihook.pytest_collectreport(report=rep)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
651
UsageError
ref
function
raise UsageError(*errors)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
657
genitems
ref
function
self.items.extend(self.genitems(node))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
659
check_pending
ref
function
self.config.pluginmanager.check_pending()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
660
pytest_collection_modifyitems
ref
function
hook.pytest_collection_modifyitems(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
664
pytest_collection_finish
ref
function
hook.pytest_collection_finish(session=self)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
669
collect
def
function
def collect(self) -> Iterator[Union[nodes.Item, nodes.Collector]]: from _pytest.python import Package # Keep track of any collected nodes in here, so we don't duplicate fixtures. node_cache1: Dict[Path, Sequence[nodes.Collector]] = {} node_cache2: Dict[Tuple[Type[nodes.Collector], P...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
684
trace
ref
function
self.trace("processing argument", (argpath, names))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
690
getoption
ref
function
if not self.config.getoption("doctestmodules", False):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
700
_collectfile
ref
function
col = self._collectfile(pkginit, handle_dupes=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
712
visit
ref
function
for direntry in visit(str(argpath), self._recurse):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
724
_collectfile
ref
function
for x in self._collectfile(pkginit):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
732
_collectfile
ref
function
for x in self._collectfile(path):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
746
_collectfile
ref
function
col = collect_root._collectfile(argpath, handle_dupes=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
755
trace
ref
function
self.trace("matchnodes", col, names)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
769
collect_one_node
ref
function
rep = collect_one_node(node)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
787
pytest_collectreport
ref
function
node.ihook.pytest_collectreport(report=rep)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
789
trace
ref
function
self.trace("matchnodes finished -> ", len(matching), "nodes")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
804
collect
ref
function
yield next(iter(matching[0].collect()))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
816
genitems
def
function
def genitems( self, node: Union[nodes.Item, nodes.Collector] ) -> Iterator[nodes.Item]: self.trace("genitems", node) if isinstance(node, nodes.Item): node.ihook.pytest_itemcollected(item=node) yield node else: assert isinstance(node, nodes.Coll...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
819
trace
ref
function
self.trace("genitems", node)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
821
pytest_itemcollected
ref
function
node.ihook.pytest_itemcollected(item=node)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
825
collect_one_node
ref
function
rep = collect_one_node(node)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
828
genitems
ref
function
yield from self.genitems(subnode)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
829
pytest_collectreport
ref
function
node.ihook.pytest_collectreport(report=rep)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
832
search_pypath
def
function
def search_pypath(module_name: str) -> str: """Search sys.path for the given a dotted module name, and return its file system path.""" try: spec = importlib.util.find_spec(module_name) # AttributeError: looks like package module, but actually filename # ImportError: module does not exist # V...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
835
find_spec
ref
function
spec = importlib.util.find_spec(module_name)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
844
dirname
ref
function
return os.path.dirname(spec.origin)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
849
resolve_collection_argument
def
function
def resolve_collection_argument( invocation_path: Path, arg: str, *, as_pypath: bool = _False
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
876
search_pypath
ref
function
strpath = search_pypath(strpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
878
absolutepath
ref
function
fspath = absolutepath(fspath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
885
UsageError
ref
function
raise UsageError(msg.format(arg=arg))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/main.py
src/_pytest/main.py
892
UsageError
ref
function
raise UsageError(msg.format(arg=arg))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
46
param
def
function
def param( *values: object, marks: Union[MarkDecorator, Collection[Union[MarkDecorator, Mark]]] = (), id: Optional[str] = None,
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
70
param
ref
function
return ParameterSet.param(*values, marks=marks, id=id)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
73
pytest_addoption
def
function
def pytest_addoption(parser: Parser) -> None: group = parser.getgroup("general") group._addoption( "-k", action="store", dest="keyword", default="", metavar="EXPRESSION", help="only run tests which match the given substring expression. " "An expression is ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
74
getgroup
ref
function
group = parser.getgroup("general")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
75
_addoption
ref
function
group._addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
95
_addoption
ref
function
group._addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
105
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
111
addini
ref
function
parser.addini("markers", "markers for test functions", "linelist")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
112
addini
ref
function
parser.addini(EMPTY_PARAMETERSET_OPTION, "default marker for empty parametersets")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
115
hookimpl
ref
function
@hookimpl(tryfirst=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
116
pytest_cmdline_main
def
function
def pytest_cmdline_main(config: Config) -> Optional[Union[int, ExitCode]]: import _pytest.config if config.option.markers: config._do_configure() tw = _pytest.config.create_terminal_writer(config) for line in config.getini("markers"): parts = line.split(":", 1) n...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
120
_do_configure
ref
function
config._do_configure()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
121
create_terminal_writer
ref
function
tw = _pytest.config.create_terminal_writer(config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
122
getini
ref
function
for line in config.getini("markers"):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
126
write
ref
function
tw.write("@pytest.mark.%s:" % name, bold=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
127
line
ref
function
tw.line(rest)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
128
line
ref
function
tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
129
_ensure_unconfigure
ref
function
config._ensure_unconfigure()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
136
KeywordMatcher
def
class
from_item __call__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
153
from_item
def
function
def from_item(cls, item: "Item") -> "KeywordMatcher": mapped_names = set() # Add the names of the current item and any parent items. import pytest for node in item.listchain(): if not isinstance(node, pytest.Session): mapped_names.add(node.name) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
159
listchain
ref
function
for node in item.listchain():
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
164
listextrakeywords
ref
function
mapped_names.update(item.listextrakeywords())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
172
iter_markers
ref
function
mapped_names.update(mark.name for mark in item.iter_markers())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
174
cls
ref
function
return cls(mapped_names)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
186
deselect_by_keyword
def
function
def deselect_by_keyword(items: "List[Item]", config: Config) -> None: keywordexpr = config.option.keyword.lstrip() if not keywordexpr: return if keywordexpr.startswith("-"): # To be removed in pytest 8.0.0. warnings.warn(MINUS_K_DASH, stacklevel=2) keywordexpr = "not " + key...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
202
_parse_expression
ref
function
expr = _parse_expression(keywordexpr, "Wrong expression passed to '-k'")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
207
evaluate
ref
function
if keywordexpr and not expr.evaluate(KeywordMatcher.from_item(colitem)):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
207
from_item
ref
function
if keywordexpr and not expr.evaluate(KeywordMatcher.from_item(colitem)):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
215
pytest_deselected
ref
function
config.hook.pytest_deselected(items=deselected)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
220
MarkMatcher
def
class
from_item __call__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
229
from_item
def
function
def from_item(cls, item: "Item") -> "MarkMatcher": mark_names = {mark.name for mark in item.iter_markers()} return cls(mark_names) def __call__(self, name: str) -> bool: return name in self.own_mark_names
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
230
iter_markers
ref
function
mark_names = {mark.name for mark in item.iter_markers()}
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
231
cls
ref
function
return cls(mark_names)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
237
deselect_by_mark
def
function
def deselect_by_mark(items: "List[Item]", config: Config) -> None: matchexpr = config.option.markexpr if not matchexpr: return expr = _parse_expression(matchexpr, "Wrong expression passed to '-m'") remaining: List[Item] = [] deselected: List[Item] = [] for item in items: if expr...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
242
_parse_expression
ref
function
expr = _parse_expression(matchexpr, "Wrong expression passed to '-m'")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
246
evaluate
ref
function
if expr.evaluate(MarkMatcher.from_item(item)):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
246
from_item
ref
function
if expr.evaluate(MarkMatcher.from_item(item)):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
251
pytest_deselected
ref
function
config.hook.pytest_deselected(items=deselected)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
255
_parse_expression
def
function
def _parse_expression(expr: str, exc_message: str) -> Expression: try: return Expression.compile(expr) except ParseError as e: raise UsageError(f"{exc_message}: {expr}: {e}") from None
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
259
UsageError
ref
function
raise UsageError(f"{exc_message}: {expr}: {e}") from None
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
262
pytest_collection_modifyitems
def
function
def pytest_collection_modifyitems(items: "List[Item]", config: Config) -> None: deselect_by_keyword(items, config) deselect_by_mark(items, config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
263
deselect_by_keyword
ref
function
deselect_by_keyword(items, config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
264
deselect_by_mark
ref
function
deselect_by_mark(items, config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
267
pytest_configure
def
function
def pytest_configure(config: Config) -> None: config.stash[old_mark_config_key] = MARK_GEN._config MARK_GEN._config = config empty_parameterset = config.getini(EMPTY_PARAMETERSET_OPTION) if empty_parameterset not in ("skip", "xfail", "fail_at_collect", None, ""): raise UsageError( ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
271
getini
ref
function
empty_parameterset = config.getini(EMPTY_PARAMETERSET_OPTION)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
274
UsageError
ref
function
raise UsageError(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/__init__.py
src/_pytest/mark/__init__.py
280
pytest_unconfigure
def
function
def pytest_unconfigure(config: Config) -> None: MARK_GEN._config = config.stash.get(old_mark_config_key, None)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
39
TokenType
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
50
Token
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
56
ParseError
def
class
__init__ __str__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
71
Scanner
def
class
__init__ lex accept reject
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
75
lex
ref
function
self.tokens = self.lex(input)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
78
lex
def
function
def lex(self, input: str) -> Iterator[Token]: pos = 0 while pos < len(input): if input[pos] in (" ", "\t"): pos += 1 elif input[pos] == "(": yield Token(TokenType.LPAREN, "(", pos) pos += 1 elif input[pos] == ")": ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
84
Token
ref
function
yield Token(TokenType.LPAREN, "(", pos)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/mark/expression.py
src/_pytest/mark/expression.py
87
Token
ref
function
yield Token(TokenType.RPAREN, ")", pos)