Decorator for tests which involve reference counting. To start, the decorator does not run the test if is not run by CPython. After that, any trace function is unset during the test to prevent unexpected refcounts caused by the trace function.
(test)
| 1432 | |
| 1433 | |
| 1434 | def refcount_test(test): |
| 1435 | """Decorator for tests which involve reference counting. |
| 1436 | |
| 1437 | To start, the decorator does not run the test if is not run by CPython. |
| 1438 | After that, any trace function is unset during the test to prevent |
| 1439 | unexpected refcounts caused by the trace function. |
| 1440 | |
| 1441 | """ |
| 1442 | return no_tracing(cpython_only(test)) |
| 1443 | |
| 1444 | |
| 1445 | def requires_limited_api(test): |
nothing calls this directly
no test coverage detected
searching dependent graphs…