doctest.DocTestParser._find_options

DocTestParser._find_options(source, name, lineno)[source]

Return a dictionary containing option overrides extracted from option directives in the given source string.

name is the string’s name, and lineno is the line number where the example starts; both are used for error messages.