test_issues.cpp
6.76 KB
-
Simplify tests by replacing output capture with asserts where possible · 665e8804
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"`Dean Moldovan committed