mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
added a simple test for search_cpp
This commit is contained in:
parent
7bea344d35
commit
f6f4b3084c
2 changed files with 15 additions and 5 deletions
|
@ -202,11 +202,10 @@ class config(Command):
|
|||
preprocesses an empty file -- which can be useful to determine the
|
||||
symbols the preprocessor and compiler set by default.
|
||||
"""
|
||||
|
||||
self._check_compiler()
|
||||
(src, out) = self._preprocess(body, headers, include_dirs, lang)
|
||||
src, out = self._preprocess(body, headers, include_dirs, lang)
|
||||
|
||||
if type(pattern) is StringType:
|
||||
if isinstance(pattern, str):
|
||||
pattern = re.compile(pattern)
|
||||
|
||||
file = open(out)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue