mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
fix test harness for windows debug builds
This commit is contained in:
parent
bda3b67dc5
commit
76269b70b6
@ -25,8 +25,10 @@ def sanitize(lines):
|
|||||||
line = line.strip()
|
line = line.strip()
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
lower = line.lower()
|
lower = line.lower()
|
||||||
|
# The precise pattern of allocations and deallocations is dependent on the compiler
|
||||||
|
# and optimization level, so we unfortunately can't reliably check it in this kind of test case
|
||||||
if 'constructor' in lower or 'destructor' in lower \
|
if 'constructor' in lower or 'destructor' in lower \
|
||||||
or 'ref' in lower:
|
or 'ref' in lower or 'freeing' in lower:
|
||||||
line = ""
|
line = ""
|
||||||
lines[i] = line
|
lines[i] = line
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user