MCPcopy
hub / github.com/pytest-dev/pytest / _get_flag_lookup

Function _get_flag_lookup

src/_pytest/doctest.py:385–398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

383
384
385def _get_flag_lookup() -> dict[str, int]:
386 import doctest
387
388 return dict(
389 DONT_ACCEPT_TRUE_FOR_1=doctest.DONT_ACCEPT_TRUE_FOR_1,
390 DONT_ACCEPT_BLANKLINE=doctest.DONT_ACCEPT_BLANKLINE,
391 NORMALIZE_WHITESPACE=doctest.NORMALIZE_WHITESPACE,
392 ELLIPSIS=doctest.ELLIPSIS,
393 IGNORE_EXCEPTION_DETAIL=doctest.IGNORE_EXCEPTION_DETAIL,
394 COMPARISON_FLAGS=doctest.COMPARISON_FLAGS,
395 ALLOW_UNICODE=_get_allow_unicode_flag(),
396 ALLOW_BYTES=_get_allow_bytes_flag(),
397 NUMBER=_get_number_flag(),
398 )
399
400
401def get_optionflags(config: Config) -> int:

Callers 1

get_optionflagsFunction · 0.85

Calls 3

_get_allow_unicode_flagFunction · 0.85
_get_allow_bytes_flagFunction · 0.85
_get_number_flagFunction · 0.85

Tested by

no test coverage detected