mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
The C++ part of the test code is modified to achieve this. As a result,
this kind of test:
```python
with capture:
kw_func1(5, y=10)
assert capture == "kw_func(x=5, y=10)"
```
can be replaced with a simple:
`assert kw_func1(5, y=10) == "x=5, y=10"`
2.6 KiB
2.6 KiB