Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion distutils/tests/test_config_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def test_search_cpp(self):
)

# simple pattern searches
match = cmd.search_cpp(pattern='xxx', body='/* xxx */')
# Skip line-marker lines ('# 1 "/path/to/header.h"'); the header
# paths they contain may legitimately include the search token.
match = cmd.search_cpp(pattern=r'^(?!#).*xxx', body='/* xxx */')
assert match == 0

match = cmd.search_cpp(pattern='_configtest', body='/* xxx */')
Expand Down