MCPcopy Index your code
hub / github.com/python/cpython / build_extension

Method build_extension

Lib/test/test_peg_generator/test_c_parser.py:130–135  ·  view source on GitHub ↗
(self, grammar_source)

Source from the content-addressed store, hash-verified

128 sysconfig._CONFIG_VARS.update(self._backup_config_vars)
129
130 def build_extension(self, grammar_source):
131 grammar = parse_string(grammar_source, GrammarParser)
132 # Because setUp() already changes the current directory to the
133 # temporary path, use a relative path here to prevent excessive
134 # path lengths when compiling.
135 generate_parser_c_extension(grammar, Path('.'), library_dir=self.library_dir)
136
137 def run_test(self, grammar_source, test_source):
138 self.build_extension(grammar_source)

Callers 1

run_testMethod · 0.95

Calls 3

parse_stringFunction · 0.90
PathClass · 0.90

Tested by

no test coverage detected