(self, grammar_source)
| 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) |
no test coverage detected