"""."""
import sys
def pin_point(filename):
"""."""
last_cxx_std = None
found_failed = None
def transition():
if last_cxx_std is None:
assert found_failed is None
else:
assert found_failed is not None
print(last_cxx_std, found_failed, filename)
for line in open(filename).read().splitlines():
pat = " C++ Info: "
ix = line.find(pat)
if ix >= 0:
jx = line.find(" __pybind11_internals_")
assert jx > ix
transition()
last_cxx_std = line[ix + len(pat) : jx].strip()
found_failed = False
continue
ix = line.find("FAILED")
jx = line.find("test_type_caster_odr_guard_")
if ix >= 0 and jx > ix:
found_failed = True
continue
transition()
def run(args):
for filename in args:
pin_point(filename)
if __name__ == "__main__":
run(args=sys.argv[1:])
Description
The condition added here is based on close inspection of the GHA logs for https://github.com/pybind/pybind11/pull/4914.
https://github.com/pybind/pybind11/actions/runs/6725911906
Download: logs_30786.zip
what_fails.py:
Suggested changelog entry: