mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-05 06:53:36 +08: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…
x
Reference in New Issue
Block a user