Test if python builtins like sum() can be used as callbacks
()
| 157 | reason="PyPy segfaults on here. See discussion on #1413.", |
| 158 | ) |
| 159 | def test_python_builtins(): |
| 160 | """Test if python builtins like sum() can be used as callbacks""" |
| 161 | assert m.test_sum_builtin(sum, [1, 2, 3]) == 6 |
| 162 | assert m.test_sum_builtin(sum, []) == 0 |
| 163 | |
| 164 | |
| 165 | @pytest.mark.skipif(sys.platform.startswith("emscripten"), reason="Requires threads") |
nothing calls this directly
no outgoing calls
no test coverage detected