added a simple test for search_cpp

This commit is contained in:
Tarek Ziadé 2009-04-12 16:31:24 +00:00
parent 7bea344d35
commit f6f4b3084c
2 changed files with 15 additions and 5 deletions

View file

@ -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)